mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-17 19:23:25 +00:00
Make fmt-check happy again
This commit is contained in:
@@ -4,8 +4,8 @@ package machine
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"device/avr"
|
"device/avr"
|
||||||
"runtime/volatile"
|
|
||||||
"runtime/interrupt"
|
"runtime/interrupt"
|
||||||
|
"runtime/volatile"
|
||||||
)
|
)
|
||||||
|
|
||||||
const irq_USART0_RX = avr.IRQ_USART0_RX
|
const irq_USART0_RX = avr.IRQ_USART0_RX
|
||||||
@@ -201,7 +201,6 @@ func (pwm PWM) Configure(config PWMConfig) error {
|
|||||||
top = config.Period * (uint64(CPUFrequency()) / 1000000) / 1000
|
top = config.Period * (uint64(CPUFrequency()) / 1000000) / 1000
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// The ideal PWM period may be larger than would fit in the PWM counter,
|
// The ideal PWM period may be larger than would fit in the PWM counter,
|
||||||
// which is 16 bits (see maxTop). Therefore, try to make the PWM clock
|
// which is 16 bits (see maxTop). Therefore, try to make the PWM clock
|
||||||
// speed lower with a prescaler to make the top value fit the maximum
|
// speed lower with a prescaler to make the top value fit the maximum
|
||||||
|
|||||||
Reference in New Issue
Block a user