rp2040: replace sleep 'busy loop' with timer alarm

This commit is contained in:
Kenneth Bell
2022-05-11 20:39:41 +01:00
committed by Ron Evans
parent fa673f0827
commit 8f40b107d9
3 changed files with 72 additions and 0 deletions
+5
View File
@@ -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