示例#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;
}
示例#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;
}
示例#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;
}
示例#4
0
void delay(unsigned msec)
{
 __menuet__delay100(msec);
}
示例#5
0
int pause(void)
{
 __menuet__delay100(1);
 return 0;
}