You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
529 B

4 years ago
  1. #ifndef _T21_T8_H_
  2. #define _T21_T8_H_
  3. #include "hic.h"
  4. #include "motor.h"
  5. #include "basic_type.h"
  6. #define configTicketUs 1000
  7. #define configDebugLightFlipPeriodMS 300
  8. void t21_config(void); //定时器初始化�?.5s一次中�?
  9. void t21_irq_interrupt(void);//中断触发
  10. void system_module_process_interrupt();
  11. int32_t sleep_ms(int32_t time);
  12. void init_timer1_as_ticketustimer_in32M();
  13. int32_t hal_get_ticket();
  14. int32_t hal_get_irqticket();
  15. uint32_t hal_has_passedms(uint32_t lastticket);
  16. #endif