-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.h
37 lines (25 loc) · 870 Bytes
/
functions.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef _FUNCTIONS_H_
#define _FUNCTIONS_H_
inline void switch_to_day(void);
inline void switch_to_dild_waiting(void);
inline void switch_to_dild_active(void);
inline void switch_to_wild(void);
inline void alarm_day(void);
inline void alarm_dild_waiting(void);
inline void alarm_dild_active(void);
inline void alarm_wild(void);
inline void init(void);
void calibrate(void);
inline void wdt_start(void);
inline void wdt_stop(void);
inline void power_idle(void);
inline void power_down(void);
inline void turn_on(output_t*);
inline void turn_off(output_t*);
void set_output(output_t* output, uint16_t on_time, uint16_t off_time, uint16_t delay, uint8_t times, uint8_t brightness, bool_t repeat);
void handle_output(output_t* output);
void update_button(button_t*, button_state_t);
void fast_timer(void);
void slow_timer(void);
void calibrate_wdt(void);
#endif