timer.h 340 B

1234567891011121314151617181920
  1. #ifndef __SYS_TIMER_H__
  2. #define __SYS_TIMER_H__
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #include "stdint.h"
  7. typedef void (*HAL_TimerCB_fp) (void);
  8. void timer_tick_check(void);
  9. int timer_unregister(uint8_t *handle);
  10. uint8_t timer_register(HAL_TimerCB_fp callback, int timerReload);
  11. #ifdef __cplusplus
  12. }
  13. #endif
  14. #endif //__SYS_TIMER_H__