synth/uart/util.c

12 lines
229 B
C
Raw Normal View History

2021-02-23 04:37:18 +00:00
#define CYCLES_PER_MS 6666 // ish
/** waits a general amount of time */
void busy_sleep(int ms) {
for (int i = 0; i < ms; ++i) {
// wait for 1 ms
for (int i = 0; i < CYCLES_PER_MS; ++i) {
// nothing
}
}
}