mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-18 03:24:00 +00:00
all: format code according to Go 1.19 rules
Go 1.19 started reformatting code in a way that makes it more obvious how it will be rendered on pkg.go.dev. It gets it almost right, but not entirely. Therefore, I had to modify some of the comments so that they are formatted correctly.
This commit is contained in:
@@ -50,10 +50,10 @@ func nanosecondsToTicks(ns int64) timeUnit {
|
||||
return timeUnit(ns / 1000)
|
||||
}
|
||||
|
||||
// cyclesPerMilli-1 is used for the systick reset value
|
||||
// the systick current value will be decremented on every clock cycle
|
||||
// an interrupt is generated when the current value reaches 0
|
||||
// a value of freq/1000 generates a tick (irq) every millisecond (1/1000 s)
|
||||
// cyclesPerMilli-1 is used for the systick reset value.
|
||||
// The systick current value will be decremented on every clock cycle.
|
||||
// An interrupt is generated when the current value reaches 0.
|
||||
// A value of freq/1000 generates a tick (irq) every millisecond (1/1000 s).
|
||||
var cyclesPerMilli = machine.CPUFrequency() / 1000
|
||||
|
||||
// number of systick irqs (milliseconds) since boot
|
||||
|
||||
Reference in New Issue
Block a user