aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/remote.h
blob: 97f4f1123b9ed20dd3493fdb13c58dbd8323c233 (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
#ifndef REMOTE_H_
#define REMOTE_H_

#include "main.h"

#if FEAT_REMOTE
# if IS_ATMEGAx8
#  define USE_REMOTE	1
# else
#  warning "Remote control not possible on this device."
#  define USE_REMOTE	0
# endif
#else
# define USE_REMOTE	0
#endif

#if USE_REMOTE
# define IF_REMOTE(...)	__VA_ARGS__
#else
# define IF_REMOTE(...)	/* nothing */
#endif

void remote_handle_deep_sleep_wakeup(void);
void remote_handle_watchdog_interrupt(void);
void remote_restore_from_eeprom(void);
void remote_init(void);

#endif /* REMOTE_H_ */
bues.ch cgit interface