mirror of
https://github.com/raphnet/gc_n64_usb-v3
synced 2024-11-12 20:25:04 -05: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
|