Skip to content

Commit eda6f52

Browse files
committed
WIP
1 parent d10680c commit eda6f52

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/runtime/runtime_py32.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,14 @@ func sleepTicks(d timeUnit) {
5050
start := ticks()
5151
stop := start + d
5252
for ticks() < stop {
53-
arm.Asm("wfe")
53+
waitForEvents()
5454
}
5555
}
5656

57+
func waitForEvents() {
58+
arm.Asm("wfe")
59+
}
60+
5761
func putchar(c byte) {
5862
machine.Serial.WriteByte(c)
5963
}

0 commit comments

Comments
 (0)