bsp_timer.h 584 B

12345678910111213141516171819202122
  1. #ifndef __BSP_TIMER_H_
  2. #define __BSP_TIMER_H_
  3. typedef short int16_t;
  4. typedef int int32_t;
  5. typedef long long int64_t;
  6. typedef unsigned char uint8_t;
  7. typedef unsigned short uint16_t;
  8. typedef unsigned int uint32_t;
  9. typedef unsigned long long uint64_t;
  10. typedef uint32_t (*tHandler_callback)(uint16_t val);
  11. extern void Init_Timer(uint32_t ch, uint32_t msTick); /* TIMER³õʼ»¯ */
  12. extern void Timer_Register_Callback(tHandler_callback callback, uint32_t ch);
  13. extern void Timer_disable(uint32_t ch);
  14. extern uint32_t timer_current_count(uint32_t ch);
  15. #endif