1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-12-02 08:42:15 +00:00
Atmosphere/exosphere/timers.c

8 lines
192 B
C
Raw Normal View History

2018-02-18 02:50:39 +00:00
#include "timers.h"
void wait(uint32_t microseconds) {
uint32_t old_time = TIMERUS_CNTR_1US_0;
while (TIMERUS_CNTR_1US_0 - old_time <= microseconds) {
2018-02-18 02:50:39 +00:00
/* Spin-lock. */
}
}