synth/arm/sleep.h

11 lines
184 B
C
Raw Normal View History

2022-05-17 03:56:25 +00:00
#pragma once
inline void sleep(int ms) {
for (int i = 0; i < ms; i++) {
// sleep for 1 ms
for (int j = 0; j < 22000; j++) {
asm("");
}
}
}