mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-15 00:13:43 +00:00
begin USB refactor with package machine/usb2
This commit is contained in:
@@ -141,7 +141,7 @@ func timerSleep(cycles uint32) bool {
|
||||
nxp.PIT.TIMER[pitSleepTimer].TCTRL.Set(nxp.PIT_TIMER_TCTRL_TIE) // enable interrupts
|
||||
nxp.PIT.TIMER[pitSleepTimer].TCTRL.SetBits(nxp.PIT_TIMER_TCTRL_TEN) // start timer
|
||||
for {
|
||||
//arm.Asm("wfi") // TODO: causes hardfault! why?
|
||||
waitForEvents()
|
||||
if pitActive.Get() == 0 {
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user