aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDan Kegel <[email protected]>2021-04-16 13:20:39 -0700
committerAyke <[email protected]>2021-04-17 00:01:37 +0200
commitf1a5743f77f6260799bf178b2eb7d23070c16f81 (patch)
tree3ec15337c0ee272ef26df6e399b6e392cf8319e7
parent9f52fe4e4a35dc4c77866ccac520678c406f3d6d (diff)
downloadtinygo-f1a5743f77f6260799bf178b2eb7d23070c16f81.tar.gz
tinygo-f1a5743f77f6260799bf178b2eb7d23070c16f81.zip
Make fmt-check happy again
-rw-r--r--src/machine/machine_atmega1280.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/machine/machine_atmega1280.go b/src/machine/machine_atmega1280.go
index ae06c028f..cc63d1e0a 100644
--- a/src/machine/machine_atmega1280.go
+++ b/src/machine/machine_atmega1280.go
@@ -4,8 +4,8 @@ package machine
import (
"device/avr"
- "runtime/volatile"
"runtime/interrupt"
+ "runtime/volatile"
)
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
}
-
// 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
// speed lower with a prescaler to make the top value fit the maximum