mirror of
https://github.com/raphnet/gc_n64_usb-v3
synced 2024-10-31 15:45:09 -04:00
28 lines
284 B
C
28 lines
284 B
C
#ifdef LIBDRAGON
|
|
#include <libdragon.h>
|
|
|
|
void _delay_us(unsigned long us)
|
|
{
|
|
wait_ms(us/1000);
|
|
}
|
|
|
|
void _delay_s(unsigned long s)
|
|
{
|
|
wait_ms(s*1000);
|
|
}
|
|
|
|
#else
|
|
#include <unistd.h>
|
|
|
|
void _delay_us(unsigned long us)
|
|
{
|
|
usleep(us);
|
|
}
|
|
|
|
void _delay_s(unsigned long s)
|
|
{
|
|
sleep(s);
|
|
}
|
|
|
|
#endif
|