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
638 B

  1. #ifndef __TIMER_H__
  2. #define __TIMER_H__
  3. #include "event.h"
  4. /* *********************************************************************** */
  5. #define EVENT_NUM_TIMER_DEBOUNCE1 0
  6. #define EVENT_NUM_TIMER_DEBOUNCE2 1
  7. #define EVENT_NUM_TIMER_DOOR_CLOSE_DELAY 2
  8. /* *********************************************************************** */
  9. void timer_init (void);
  10. uint8_t timer_check (uint8_t timer_needed);
  11. void timer_event_handler (struct event_entry *event);
  12. uint8_t timer_get_sleep_mode(void);
  13. /* *********************************************************************** */
  14. #endif /* __TIMER_H__ */