synth/arm/sleep.h
2022-05-16 20:59:17 -07:00

11 lines
184 B
C

#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("");
}
}
}