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 #define CAPTURE
30 
35 #define RECEIVE
36 
40 #define DECODER
41 
45 #define DECODELED
46 
50 #define LCD
51 
55 #define LED
56 
61 #define PARAMETERS
62 
67 #ifdef DOXYGEN
68 #define NAMED_COMMANDS
69 #endif
70 //#define NAMED_COMMANDS
71 
77 #define DONT_REPORT_DECODES
78 
83 #define CONFIGURABLE_LEDS
84 
88 #define NON_MOD
89 
93 #define RESET
94 
98 #define FREEMEM
99 
103 #define INFO
104 
108 #define PRONTO
109 
110 #ifdef LED
111 
112 #ifdef TRANSMIT
113 
116 #define TRANSMITLED 8
117 //#define TRANSMITLED 4
118 #endif
119 
120 #ifdef RECEIVE
121 
124 #define RECEIVELED 7
125 //#define RECEIVELED 3
126 #endif
127 
128 #ifdef CAPTURE
129 
132 #define CAPTURELED 6
133 //#define CAPTURELED 2
134 #endif
135 
139 #define COMMANDLED 5
140 //#define COMMANDLED 1
141 
142 #endif // LED
143 
147 #define ETHERNET
148 
149 // Print received commands on the LCD display
150 //#define DEBUG_CMD
151 
152 #ifdef ETHERNET
153 
157 #define SERIAL_DEBUG
158 
162 #define SDCARD_ON_ETHERSHIELD_PIN 4
163 
168 #define DHCP
169 
175 #ifdef DOXYGEN
176 #define BEACON
177 #endif
178 //#define BEACON
179 
180 
181 #endif // ETHERNET
182 
183 // Hardware configuration
184 
185 #ifdef ETHERNET
186 
190 #define MACADDRESS 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED
191 
192 #ifndef DHCP
193 #define IPADDRESS 192,168,1,29
194 #define GATEWAY 192,168,1,254
195 #define DNSSERVER 192,168,1,4
196 #define SUBNETMASK 255,255,255,0
197 #endif // ! DHCP
198 
202 #define PORT 33333
203 #endif // ETHERNET
204 
208 #define EOLCHAR '\r'
209 
210 // Hardware configuration
211 
212 // Define an LCD symbol to use, if desired.
213 #ifdef LCD
214 
219 #define LCD_0x3F_20_4
220 
225 #ifdef DOXYGEN
226 #define LCD_0x27_20_4
227 #endif
228 //#define LCD_0x27_20_4
229 
234 #ifdef DOXYGEN
235 #define LCD_0x27_16_2
236 #endif
237 //#define LCD_0x27_16_2
238 
239 #endif // LCD
240 
241 // Include one file describing the pin configuration
242 // Use one of the provided, or write your own.
243 #include <girs_hw_config.h> // Generic
244 
245 #if defined(ARDUINO_AVR_MEGA2560)
246 #define LARGE_RAM
247 #endif
248 
249 // Without PARAMETERS, these are really not defaults,
250 // they are the non-changeable values.
254 #define DEFAULT_BEGINTIMEOUT 10000UL // milliseconds
255 
256 #ifdef DECODER
257 
261 #define DEFAULT_RECEIVE_ENDINGTIMEOUT 30L // milliseconds
262 #else
263 #define DEFAULT_RECEIVE_ENDINGTIMEOUT 50L // milliseconds
264 #endif
265 
266 #ifdef CAPTURE
267 
270 #define DEFAULT_CAPTURE_ENDINGTIMEOUT 100L // milliseconds
271 #endif
272 
276 #if defined(CAPTURE) | defined(RECEIVE)
277 #ifdef LARGE_RAM
278 #define DEFAULT_CAPTURESIZE 500U // must be even
279 #else
280 #define DEFAULT_CAPTURESIZE 400U // must be even
281 #endif
282 #endif
283 
284 #ifdef RECEIVE
285 
288 #define IRRECEIVER_MARK_EXCESS 50
289 #endif
290 
291 #ifdef CAPTURE
292 
295 #define IRSENSOR_MARK_EXCESS -10
296 #endif
297 
298 #if !defined(ETHERNET) | defined(SERIAL_DEBUG)
299 
302 #define SERIALBAUD 115200
303 
307 #define SERIALTIMEOUT 5000L
308 #endif // !defined(ETHERNET) | defined(SERIAL_DEBUG)