mirror of
https://github.com/diegocr/libnix.git
synced 2025-12-08 14:58:32 +00:00
14 lines
264 B
C
14 lines
264 B
C
#include <devices/timer.h>
|
|
#include <unistd.h>
|
|
|
|
extern void dotimer_r(ULONG,ULONG,struct timeval *);
|
|
|
|
void usleep_r(unsigned int tim)
|
|
{ struct timeval tv;
|
|
|
|
tv.tv_secs = tim / 1000000;
|
|
tv.tv_micro = tim % 1000000;
|
|
|
|
dotimer_r(UNIT_VBLANK,TR_ADDREQUEST,&tv);
|
|
}
|