Timer_Module.h 303 B

1234567891011121314151617181920
  1. #ifndef __TIMER_MODULE_H
  2. #define __TIMER_MODULE_H
  3. #include <stdint.h>
  4. void my_timer(void);
  5. struct TIMER_Struct
  6. {
  7. uint32_t time;
  8. uint8_t flag;
  9. };
  10. uint32_t time_get_delay(struct TIMER_Struct * timer);
  11. void time_clear(struct TIMER_Struct * timer);
  12. // ÑÓʱº¯Êý
  13. void my_delay_ms(uint32_t ms);
  14. #endif