add usleep
This commit is contained in:
parent
9f98cefa3e
commit
850646ea31
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <reent.h>
|
#include <reent.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
#define TICKS_PER_USEC 268.123480
|
#define TICKS_PER_USEC 268.123480
|
||||||
#define TICKS_PER_MSEC 268123.480
|
#define TICKS_PER_MSEC 268123.480
|
||||||
@ -159,3 +160,12 @@ void osSetSpeedupEnable(bool enable)
|
|||||||
__ctru_speedup = enable;
|
__ctru_speedup = enable;
|
||||||
__ctru_speedup_config();
|
__ctru_speedup_config();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int usleep(useconds_t useconds)
|
||||||
|
{
|
||||||
|
|
||||||
|
svcSleepThread(useconds * 1000);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user