Beispiel #1
0
void usleep(unsigned int tim)
{ struct timeval tv;

  tv.tv_secs = tim / 1000000;
  tv.tv_micro = tim % 1000000;

  dotimer(UNIT_VBLANK,TR_ADDREQUEST,&tv);
}
Beispiel #2
0
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);
}