mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-07 18:04:40 -04:00
Move source files to src/, add Makefile, fix all build and linkage errors, etc.
This commit is contained in:
parent
4c7aa566f0
commit
b0ea9c1a0b
58 changed files with 385 additions and 203 deletions
8
exosphere/src/timers.c
Normal file
8
exosphere/src/timers.c
Normal file
|
@ -0,0 +1,8 @@
|
|||
#include "timers.h"
|
||||
|
||||
void wait(uint32_t microseconds) {
|
||||
uint32_t old_time = TIMERUS_CNTR_1US_0;
|
||||
while (TIMERUS_CNTR_1US_0 - old_time <= microseconds) {
|
||||
/* Spin-lock. */
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue