Example #1
0
int __libclog_vprintf(const char *fmt, va_list args)
{
 int ret_val;
 ret_val = vsprintf(log_buf,fmt,args);
 xputs(log_buf);
 __menuet__delay100(1);
 return ret_val;
}
Example #2
0
int __libclog_printf(const char * fmt,...)
{
 int v;
 va_list ap;
 va_start(ap,fmt);
 v=__libclog_vprintf(fmt,ap);
 __menuet__delay100(1);
 return v;
}
Example #3
0
unsigned int usleep(unsigned int _useconds)
{
 clock_t cl_time;
 clock_t start_time = clock();
 _useconds >>= 10;
 cl_time = _useconds * CLOCKS_PER_SEC / 977;
 while (1)
 {
  clock_t elapsed = clock() - start_time;
  if (elapsed >= cl_time) break;
  __menuet__delay100(1);
 }
 return 0;
}
Example #4
0
void delay(unsigned msec)
{
 __menuet__delay100(msec);
}
Example #5
0
int pause(void)
{
 __menuet__delay100(1);
 return 0;
}