AGirs
GirsLite.config.h
Go to the documentation of this file.
1 
6 #pragma once
7 
11 #define PROGNAME "GirsLite"
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
46 //#define DECODELED
47 
51 //#define LCD
52 
56 #define LED
57 
62 #define PARAMETERS
63 
68 #ifdef DOXYGEN
69 #define NAMED_COMMANDS
70 #endif
71 //#define NAMED_COMMANDS
72 
78 //#define DONT_REPORT_DECODES
79 
84 //#define CONFIGURABLE_LEDS
85 
89 //#define NON_MOD
90 
94 //#define RESET
95 
99 //#define FREEMEM
100 
104 //#define INFO
105 
109 //#define PRONTO
110 
111 #ifdef LED
112 
113 #ifdef TRANSMIT
117 #define TRANSMITLED 4
118 #endif
119 
120 #ifdef RECEIVE
124 #define RECEIVELED 3
125 #endif
126 
127 #ifdef CAPTURE
131 #define CAPTURELED 3
132 #endif
133 
137 #define COMMANDLED 2
138 
139 #endif // LED
140 
141 
145 #define EOLCHAR '\r'
146 
147 // Hardware configuration
148 
149 // Define an LCD symbol to use, if desired.
150 #ifdef LCD
151 
156 #define LCD_0x3F_20_4
157 
162 #ifdef DOXYGEN
163 #define LCD_0x27_20_4
164 #endif
165 //#define LCD_0x27_20_4
166 
171 #ifdef DOXYGEN
172 #define LCD_0x27_16_2
173 #endif
174 //#define LCD_0x27_16_2
175 
176 #endif // LCD
177 
178 // Include one file describing the pin configuration
179 // Use one of the provided, or write your own.
180 #include <girs_hw_config.h> // Generic
181 
182 // Without PARAMETERS, these are really not defaults,
183 // they are the non-changeable values.
187 #define DEFAULT_BEGINTIMEOUT 10000UL // milliseconds
188 
193 #define DEFAULT_RECEIVE_ENDINGTIMEOUT 50L // milliseconds
194 #ifdef CAPTURE
198 #define DEFAULT_CAPTURE_ENDINGTIMEOUT 100L // milliseconds
199 #endif
200 
204 #define DEFAULT_CAPTURESIZE 400U // must be even
205 
206 #ifdef RECEIVE
210 #define IRRECEIVER_MARK_EXCESS 50
211 #endif
212 
213 #ifdef CAPTURE
217 #define IRSENSOR_MARK_EXCESS -10
218 #endif
219 
220 #if !defined(ETHERNET) | defined(SERIAL_DEBUG)
224 #define SERIALBAUD 115200
225 
229 #define SERIALTIMEOUT 5000L
230 #endif // !defined(ETHERNET) | defined(SERIAL_DEBUG)