AGirs
GirsFat.config.h
Go to the documentation of this file.
1 
6 #pragma once
7 
11 #define PROGNAME "AGirs"
12 
13 // Define Girs modules to implement, see http://www.harctoolbox.org/Girs.html
14 
18 #define TRANSMIT
19 
23 #define RENDERER
24 
29 #if HAS_INPUT_CAPTURE
30 #define CAPTURE
31 #endif
32 
37 #define RECEIVE
38 
42 #define DECODER
43 
47 #define DECODELED
48 
52 #define LCD
53 
57 #define LED
58 
63 #define PARAMETERS
64 
69 #ifdef DOXYGEN
70 #define NAMED_COMMANDS
71 #endif
72 //#define NAMED_COMMANDS
73 
79 #define DONT_REPORT_DECODES
80 
85 #define CONFIGURABLE_LEDS
86 
90 #define NON_MOD
91 
95 #define RESET
96 
100 #define FREEMEM
101 
105 #define INFO
106 
110 #define PRONTO
111 
112 #ifdef LED
113 
114 #ifdef TRANSMIT
118 #define TRANSMITLED 8
119 //#define TRANSMITLED 4
120 #endif
121 
122 #ifdef RECEIVE
126 #define RECEIVELED 7
127 //#define RECEIVELED 3
128 #endif
129 
130 #ifdef CAPTURE
134 #define CAPTURELED 6
135 //#define CAPTURELED 2
136 #endif
137 
141 #define COMMANDLED 5
142 //#define COMMANDLED 1
143 
144 #endif // LED
145 
149 //#define ETHERNET
150 
151 // Print received commands on the LCD display
152 //#define DEBUG_CMD
153 
154 #ifdef ETHERNET
155 
159 #define SERIAL_DEBUG
160 
164 #define SDCARD_ON_ETHERSHIELD_PIN 4
165 
170 #define DHCP
171 
177 #ifdef DOXYGEN
178 #define BEACON
179 #endif
180 //#define BEACON
181 
182 
183 #endif // ETHERNET
184 
185 // Hardware configuration
186 
187 #ifdef ETHERNET
188 
192 #define MACADDRESS 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED
193 
194 #ifndef DHCP
195 #define IPADDRESS 192,168,1,29
196 #define GATEWAY 192,168,1,254
197 #define DNSSERVER 192,168,1,4
198 #define SUBNETMASK 255,255,255,0
199 #endif // ! DHCP
200 
204 #define PORT 33333
205 #endif // ETHERNET
206 
210 #define EOLCHAR '\r'
211 
212 // Hardware configuration
213 
214 // Define an LCD symbol to use, if desired.
215 #ifdef LCD
216 
221 #define LCD_0x3F_20_4
222 
227 #ifdef DOXYGEN
228 #define LCD_0x27_20_4
229 #endif
230 //#define LCD_0x27_20_4
231 
236 #ifdef DOXYGEN
237 #define LCD_0x27_16_2
238 #endif
239 //#define LCD_0x27_16_2
240 
241 #endif // LCD
242 
243 // Include one file describing the pin configuration
244 // Use one of the provided, or write your own.
245 #include <girs_hw_config.h> // Generic
246 
247 #if defined(ARDUINO_AVR_MEGA2560)
248 #define LARGE_RAM
249 #endif
250 
251 // Without PARAMETERS, these are really not defaults,
252 // they are the non-changeable values.
256 #define DEFAULT_BEGINTIMEOUT 10000UL // milliseconds
257 
258 #ifdef DECODER
263 #define DEFAULT_RECEIVE_ENDINGTIMEOUT 30L // milliseconds
264 #else
265 #define DEFAULT_RECEIVE_ENDINGTIMEOUT 50L // milliseconds
266 #endif
267 
268 #ifdef CAPTURE
272 #define DEFAULT_CAPTURE_ENDINGTIMEOUT 100L // milliseconds
273 #endif
274 
278 #if defined(CAPTURE) | defined(RECEIVE)
279 #ifdef LARGE_RAM
280 #define DEFAULT_CAPTURESIZE 500U // must be even
281 #else
282 #define DEFAULT_CAPTURESIZE 400U // must be even
283 #endif
284 #endif
285 
286 #ifdef RECEIVE
290 #define IRRECEIVER_MARK_EXCESS 50
291 #endif
292 
293 #ifdef CAPTURE
297 #define IRSENSOR_MARK_EXCESS -10
298 #endif
299 
300 #if !defined(ETHERNET) | defined(SERIAL_DEBUG)
304 #define SERIALBAUD 115200
305 
309 #define SERIALTIMEOUT 5000L
310 #endif // !defined(ETHERNET) | defined(SERIAL_DEBUG)