mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-12-23 10:52:13 +00:00
8 lines
186 B
C
8 lines
186 B
C
|
#include "timers.h"
|
||
|
|
||
|
void wait(uint32_t microseconds) {
|
||
|
uint32_t old_time = TIMERUS_CNTR_1US_0;
|
||
|
while (TIMERUS_CNTR_1US_0 - old_time <= result) {
|
||
|
/* Spin-lock. */
|
||
|
}
|
||
|
}
|