blob: f2a6fcbd9d7cfba8fb6af098967d749a70284417 (
plain)
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
|
#ifndef MAIN_H_
#define MAIN_H_
#include "util.h"
#if (defined(__AVR_ATmega88__) ||\
defined(__AVR_ATmega88P__) ||\
defined(__AVR_ATmega328P__))
# define IS_ATMEGAx8 1
#elif (defined(__AVR_ATtiny13__) ||\
defined(__AVR_ATtiny25__) ||\
defined(__AVR_ATtiny45__) ||\
defined(__AVR_ATtiny85__))
# define IS_ATMEGAx8 0
#else
# error "Unknown microcontroller."
#endif
/* Sleep mode. */
#if FEAT_POWERSAVE
# define USE_DEEP_SLEEP 1
#else
# define USE_DEEP_SLEEP 0
#endif
void system_handle_deep_sleep_wakeup(void);
void system_handle_watchdog_interrupt(void);
#endif /* MAIN_H_ */
|