22 lines
638 B
C
22 lines
638 B
C
#ifndef __TIMER_H__
|
|
#define __TIMER_H__
|
|
|
|
#include "event.h"
|
|
|
|
/* *********************************************************************** */
|
|
|
|
#define EVENT_NUM_TIMER_DEBOUNCE1 0
|
|
#define EVENT_NUM_TIMER_DEBOUNCE2 1
|
|
#define EVENT_NUM_TIMER_DOOR_CLOSE_DELAY 2
|
|
|
|
/* *********************************************************************** */
|
|
|
|
void timer_init (void);
|
|
uint8_t timer_check (uint8_t timer_needed);
|
|
void timer_event_handler (struct event_entry *event);
|
|
uint8_t timer_get_sleep_mode(void);
|
|
|
|
/* *********************************************************************** */
|
|
|
|
#endif /* __TIMER_H__ */
|