TIMER.H 378 B

123456789101112
  1. /* Header File for Timer system */
  2. #if !defined(__TIMER_H)
  3. #define __TIMER_H
  4. #define InitialiseTimer() sosTIMERInitSystem(_TIMER_DOS_RATE,_SOS_DEBUG_NORMAL)
  5. #define UnInitialiseTimer() sosTIMERUnInitSystem(0)
  6. #define AddTimer(rate,handler,handle) sosTIMERRegisterEvent(rate,handler,&handle)
  7. #define RemoveTimer(handle) sosTIMERRemoveEvent(handle)
  8. #endif /* __TIMER_H */