void usleep(unsigned int tim) { struct timeval tv; tv.tv_secs = tim / 1000000; tv.tv_micro = tim % 1000000; dotimer(UNIT_VBLANK,TR_ADDREQUEST,&tv); }
void timer_usleep(void *t, int us) { struct timeval tv; tv.tv_secs = us / 1000000; tv.tv_micro = us % 1000000; dotimer(UNIT_VBLANK, TR_ADDREQUEST, &tv); }