mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-17 03:03:27 +00:00
rp2040: replace sleep 'busy loop' with timer alarm
This commit is contained in:
@@ -86,6 +86,11 @@ func ticks() uint64 {
|
||||
return timer.timeElapsed()
|
||||
}
|
||||
|
||||
//go:linkname lightSleep runtime.machineLightSleep
|
||||
func lightSleep(ticks uint64) {
|
||||
timer.lightSleep(ticks)
|
||||
}
|
||||
|
||||
// UART pins
|
||||
const (
|
||||
UART_TX_PIN = UART0_TX_PIN
|
||||
|
||||
Reference in New Issue
Block a user