Open RTS
Full implementation of the Somfy RTS protocol
Loading...
Searching...
No Matches
config.h
1#ifndef OPENRTS_CONFIG_H
2#define OPENRTS_CONFIG_H
3
4//
5// Include ESP-IDF non-volatile storage rts_remote_store by default when
6// we detect you are building on the ESP platform.
7//
8// Uncomment the following line to disable:
9// #define OPENRTS_HAS_NVS 0
10#if defined(ESP_PLATFORM) && !defined(OPENRTS_HAS_NVS)
11#define OPENRTS_HAS_NVS 1
12#endif
13
14//
15// Include ESP-IDF GPIO rts_pulse_source and rts_pulse_output by default when
16// we detect you are building on the ESP platform.
17//
18// Uncomment the following line to disable:
19// #define OPENRTS_HAS_ESPIDF_GPIO 0
20#if defined(ESP_PLATFORM) && !defined(OPENRTS_HAS_ESPIDF_GPIO)
21#define OPENRTS_HAS_ESPIDF_GPIO 1
22#endif
23
24//
25// Include Linux libgpiod rts_pulse_source and rts_pulse_output.
26// We can't automatically detect this, so you'll need to set this flag manually
27//
28// Uncomment the following line to enable:
29// #define OPENRTS_HAS_GPIOD 1
30#if !defined(OPENRTS_HAS_GPIOD)
31#define OPENRTS_HAS_GPIOD 0
32#endif
33
34//
35// Include the memory-mapped file (mmap) rts_remote_store by default when we
36// detect you are building on a POSIX platform.
37//
38// Uncomment the following line to disable:
39// #define OPENRTS_HAS_MMAP 0
40#if (defined(__unix__) || (defined(__APPLE__) && defined(__MACH__))) && \
41 !defined(OPENRTS_HAS_MMAP)
42#define OPENRTS_HAS_MMAP 1
43#endif
44
45//
46// Include Arduino-specific code if we are on Arduino
47//
48// Uncomment the following line to disable:
49// #define OPENRTS_HAS_ARDUINO_GPIO 0
50#if defined(ARDUINO) && !defined(OPENRTS_HAS_ARDUINO_GPIO)
51#define OPENRTS_HAS_ARDUINO_GPIO 1
52#endif
53
54//
55// Include Arduino EEPROM rts_remote_store by default when we detect you are
56// building on a supported platform.
57//
58// Uncomment the following line to disable:
59// #define OPENRTS_HAS_EEPROM 0
60#if (defined(ARDUINO) && (defined(__AVR__) || defined(ESP_PLATFORM))) && \
61 !defined(OPENRTS_HAS_EEPROM)
62#define OPENRTS_HAS_EEPROM 1
63#endif
64
65//
66// Include Linux-specific code if we are on Linux
67#if defined(__linux__) && !defined(OPENRTS_HAS_LINUX)
68#define OPENRTS_HAS_LINUX 1
69#endif
70
71//
72// Include the radio library by default
73//
74// Uncomment the following line to disable:
75// #define OPENRTS_INCLUDE_RADIO 0
76#if !defined(OPENRTS_INCLUDE_RADIO)
77#define OPENRTS_INCLUDE_RADIO 1
78#endif
79
80#endif // OPENRTS_CONFIG_H