1
0
mirror of https://github.com/raphnet/gc_n64_usb-v3 synced 2024-11-12 20:25:04 -05:00
gc_n64_usb-v3/tool/delay.c
2015-10-05 21:12:52 -04:00

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