funkstuff/timer.h

22 lines
638 B
C
Raw Normal View History

2015-01-10 11:42:36 +01:00
#ifndef __TIMER_H__
#define __TIMER_H__
2017-11-27 21:30:20 +01:00
#include "event.h"
2015-01-10 11:42:36 +01:00
/* *********************************************************************** */
2017-11-27 21:30:20 +01:00
#define EVENT_NUM_TIMER_DEBOUNCE1 0
#define EVENT_NUM_TIMER_DEBOUNCE2 1
#define EVENT_NUM_TIMER_DOOR_CLOSE_DELAY 2
2015-01-10 11:42:36 +01:00
/* *********************************************************************** */
2017-11-27 21:30:20 +01:00
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);
2015-01-10 11:42:36 +01:00
/* *********************************************************************** */
#endif /* __TIMER_H__ */