Netcruzer Library API  V2.03
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Groups Pages
nz_board_defaults.h
Go to the documentation of this file.
1 
34 #ifndef NZ_BOARD_DEFAULTS_H
35 #define NZ_BOARD_DEFAULTS_H
36 
37 
38 
39 // *********************************************************************
40 // ---- LED & Button Defines Used by Microchip Application Library -----
41 // *********************************************************************
42 #ifndef LED0_TRIS
43 #define LED0_TRIS (((BYTE*)&NVMKEY)[1]) // No such LED, map to dummy register
44 #endif
45 #ifndef LED1_TRIS
46 #define LED1_TRIS (((BYTE*)&NVMKEY)[1]) // No such LED, map to dummy register
47 #endif
48 #ifndef LED2_TRIS
49 #define LED2_TRIS (((BYTE*)&NVMKEY)[1]) // No such LED, map to dummy register
50 #endif
51 #ifndef LED3_TRIS
52 #define LED3_TRIS (((BYTE*)&NVMKEY)[1]) // No such LED, map to dummy register
53 #endif
54 #ifndef LED4_TRIS
55 #define LED4_TRIS (((BYTE*)&NVMKEY)[1]) // No such LED, map to dummy register
56 #endif
57 #ifndef LED5_TRIS
58 #define LED5_TRIS (((BYTE*)&NVMKEY)[1]) // No such LED, map to dummy register
59 #endif
60 #ifndef LED6_TRIS
61 #define LED6_TRIS (((BYTE*)&NVMKEY)[1]) // No such LED, map to dummy register
62 #endif
63 #ifndef LED7_TRIS
64 #define LED7_TRIS (((BYTE*)&NVMKEY)[1]) // No such LED, map to dummy register
65 #endif
66 
67 #ifndef LED0_IO
68 #define LED0_IO (((BYTE*)&NVMKEY)[1]) // No such LED, map to dummy register
69 #endif
70 #ifndef LED1_IO
71 #define LED1_IO (((BYTE*)&NVMKEY)[1]) // No such LED, map to dummy register
72 #endif
73 #ifndef LED2_IO
74 #define LED2_IO (((BYTE*)&NVMKEY)[1]) // No such LED, map to dummy register
75 #endif
76 #ifndef LED3_IO
77 #define LED3_IO (((BYTE*)&NVMKEY)[1]) // No such LED, map to dummy register
78 #endif
79 #ifndef LED4_IO
80 #define LED4_IO (((BYTE*)&NVMKEY)[1]) // No such LED, map to dummy register
81 #endif
82 #ifndef LED5_IO
83 #define LED5_IO (((BYTE*)&NVMKEY)[1]) // No such LED, map to dummy register
84 #endif
85 #ifndef LED6_IO
86 #define LED6_IO (((BYTE*)&NVMKEY)[1]) // No such LED, map to dummy register
87 #endif
88 #ifndef LED7_IO
89 #define LED7_IO (((BYTE*)&NVMKEY)[1]) // No such LED, map to dummy register
90 #endif
91 
92 #ifndef BUTTON0_TRIS
93 #define BUTTON0_TRIS (((BYTE*)&NVMKEY)[1]) // No such button, map to dummy register
94 #endif
95 #ifndef BUTTON1_TRIS
96 #define BUTTON1_TRIS (((BYTE*)&NVMKEY)[1]) // No such button, map to dummy register
97 #endif
98 #ifndef BUTTON2_TRIS
99 #define BUTTON2_TRIS (((BYTE*)&NVMKEY)[1]) // No such button, map to dummy register
100 #endif
101 #ifndef BUTTON3_TRIS
102 #define BUTTON3_TRIS (((BYTE*)&NVMKEY)[1]) // No such button, map to dummy register
103 #endif
104 #ifndef BUTTON4_TRIS
105 #define BUTTON4_TRIS (((BYTE*)&NVMKEY)[1]) // No such button, map to dummy register
106 #endif
107 #ifndef BUTTON5_TRIS
108 #define BUTTON5_TRIS (((BYTE*)&NVMKEY)[1]) // No such button, map to dummy register
109 #endif
110 #ifndef BUTTON6_TRIS
111 #define BUTTON6_TRIS (((BYTE*)&NVMKEY)[1]) // No such button, map to dummy register
112 #endif
113 #ifndef BUTTON7_TRIS
114 #define BUTTON7_TRIS (((BYTE*)&NVMKEY)[1]) // No such button, map to dummy register
115 #endif
116 
117 #ifndef BUTTON0_IO
118 #define BUTTON0_IO (1)
119 #endif
120 #ifndef BUTTON1_IO
121 #define BUTTON1_IO (1)
122 #endif
123 #ifndef BUTTON2_IO
124 #define BUTTON2_IO (1)
125 #endif
126 #ifndef BUTTON3_IO
127 #define BUTTON3_IO (1)
128 #endif
129 #ifndef BUTTON4_IO
130 #define BUTTON4_IO (1)
131 #endif
132 #ifndef BUTTON5_IO
133 #define BUTTON5_IO (1)
134 #endif
135 #ifndef BUTTON6_IO
136 #define BUTTON6_IO (1)
137 #endif
138 #ifndef BUTTON7_IO
139 #define BUTTON7_IO (1)
140 #endif
141 
142 #ifndef mInitAllLEDs
143 #define mInitAllLEDs()
144 #endif
145 
146 #ifndef mLED_1
147 #define mLED_1
148 #endif
149 #ifndef mLED_2
150 #define mLED_2
151 #endif
152 #ifndef mLED_3
153 #define mLED_3
154 #endif
155 #ifndef mLED_4
156 #define mLED_4
157 #endif
158 
159 #ifndef mGetLED_1
160 #define mGetLED_1() 1
161 #endif
162 #ifndef mGetLED_2
163 #define mGetLED_2() 1
164 #endif
165 #ifndef mGetLED_3
166 #define mGetLED_3() 1
167 #endif
168 #ifndef mGetLED_4
169 #define mGetLED_4() 1
170 #endif
171 
172 #ifndef mLED_1_On
173 #define mLED_1_On()
174 #endif
175 #ifndef mLED_2_On
176 #define mLED_2_On()
177 #endif
178 #ifndef mLED_3_On
179 #define mLED_3_On()
180 #endif
181 #ifndef mLED_4_On
182 #define mLED_4_On()
183 #endif
184 
185 #ifndef mLED_1_Off
186 #define mLED_1_Off()
187 #endif
188 #ifndef mLED_2_Off
189 #define mLED_2_Off()
190 #endif
191 #ifndef mLED_3_Off
192 #define mLED_3_Off()
193 #endif
194 #ifndef mLED_4_Off
195 #define mLED_4_Off()
196 #endif
197 
198 #ifndef mLED_1_Toggle
199 #define mLED_1_Toggle()
200 #endif
201 #ifndef mLED_2_Toggle
202 #define mLED_2_Toggle()
203 #endif
204 #ifndef mLED_3_Toggle
205 #define mLED_3_Toggle()
206 #endif
207 #ifndef mLED_4_Toggle
208 #define mLED_4_Toggle()
209 #endif
210 
211 
212 
213 // *********************************************************************
214 // ----------- LED & Button Defines Used by Netcruzer Library ----------
215 // *********************************************************************
216 #ifndef DIR_LED0
217 #define DIR_LED0 LED0_TRIS
218 #endif
219 #ifndef DIR_LED1
220 #define DIR_LED1 LED1_TRIS
221 #endif
222 #ifndef DIR_LED2
223 #define DIR_LED2 LED2_TRIS
224 #endif
225 #ifndef DIR_LED3
226 #define DIR_LED3 LED3_TRIS
227 #endif
228 #ifndef DIR_LED4
229 #define DIR_LED4 LED4_TRIS
230 #endif
231 #ifndef DIR_LED5
232 #define DIR_LED5 LED5_TRIS
233 #endif
234 #ifndef DIR_LED6
235 #define DIR_LED6 LED6_TRIS
236 #endif
237 #ifndef DIR_LED7
238 #define DIR_LED7 LED7_TRIS
239 #endif
240 #ifndef DIR_LED8
241 #define DIR_LED8 LED8_TRIS
242 #endif
243 
244 #ifndef LAT_LED0
245 #define LAT_LED0 (((BYTE*)&NVMKEY)[1]) //No such LED, map to dummy register
246 #endif
247 #ifndef LAT_LED1
248 #define LAT_LED1 (((BYTE*)&NVMKEY)[1]) //No such LED, map to dummy register
249 #endif
250 #ifndef LAT_LED2
251 #define LAT_LED2 (((BYTE*)&NVMKEY)[1]) //No such LED, map to dummy register
252 #endif
253 #ifndef LAT_LED3
254 #define LAT_LED3 (((BYTE*)&NVMKEY)[1]) //No such LED, map to dummy register
255 #endif
256 #ifndef LAT_LED4
257 #define LAT_LED4 (((BYTE*)&NVMKEY)[1]) //No such LED, map to dummy register
258 #endif
259 #ifndef LAT_LED5
260 #define LAT_LED5 (((BYTE*)&NVMKEY)[1]) //No such LED, map to dummy register
261 #endif
262 #ifndef LAT_LED6
263 #define LAT_LED6 (((BYTE*)&NVMKEY)[1]) //No such LED, map to dummy register
264 #endif
265 #ifndef LAT_LED7
266 #define LAT_LED7 (((BYTE*)&NVMKEY)[1]) //No such LED, map to dummy register
267 #endif
268 #ifndef LAT_LED8
269 #define LAT_LED8 (((BYTE*)&NVMKEY)[1]) //No such LED, map to dummy register
270 #endif
271 
272 #ifndef DIR_BUTTON0
273 #define DIR_BUTTON0 BUTTON0_TRIS
274 #endif
275 #ifndef DIR_BUTTON1
276 #define DIR_BUTTON1 BUTTON1_TRIS
277 #endif
278 #ifndef DIR_BUTTON2
279 #define DIR_BUTTON2 BUTTON2_TRIS
280 #endif
281 #ifndef DIR_BUTTON3
282 #define DIR_BUTTON3 BUTTON3_TRIS
283 #endif
284 #ifndef DIR_BUTTON4
285 #define DIR_BUTTON4 BUTTON4_TRIS
286 #endif
287 #ifndef DIR_BUTTON5
288 #define DIR_BUTTON5 BUTTON5_TRIS
289 #endif
290 #ifndef DIR_BUTTON6
291 #define DIR_BUTTON6 BUTTON6_TRIS
292 #endif
293 #ifndef DIR_BUTTON7
294 #define DIR_BUTTON7 BUTTON7_TRIS
295 #endif
296 #ifndef DIR_BUTTON8
297 #define DIR_BUTTON8 BUTTON8_TRIS
298 #endif
299 
300 #ifndef PIN_BUTTON0
301 #define PIN_BUTTON0 BUTTON0_IO
302 #endif
303 #ifndef PIN_BUTTON1
304 #define PIN_BUTTON1 BUTTON1_IO
305 #endif
306 #ifndef PIN_BUTTON2
307 #define PIN_BUTTON2 BUTTON2_IO
308 #endif
309 #ifndef PIN_BUTTON3
310 #define PIN_BUTTON3 BUTTON3_IO
311 #endif
312 #ifndef PIN_BUTTON4
313 #define PIN_BUTTON4 BUTTON4_IO
314 #endif
315 #ifndef PIN_BUTTON5
316 #define PIN_BUTTON5 BUTTON5_IO
317 #endif
318 #ifndef PIN_BUTTON6
319 #define PIN_BUTTON6 BUTTON6_IO
320 #endif
321 #ifndef PIN_BUTTON7
322 #define PIN_BUTTON7 BUTTON7_IO
323 #endif
324 #ifndef PIN_BUTTON8
325 #define PIN_BUTTON8 BUTTON8_IO
326 #endif
327 
328 
329 #endif