timer.h 239 B

12345678910111213141516
  1. #ifndef __TIMER_Hx__
  2. #define __TIMER_Hx__
  3. typedef void (*timer_fn_t)(void *arg, int last);
  4. int timer_start(int t1, int t2, int times, timer_fn_t fn, void *arg);
  5. int timer_stop(int h);
  6. int timer_setup(int h, int t1, int t2);
  7. #endif