TI-RTOS Drivers  tidrivers_full_2_20_00_08
GPIOTiva.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015-2016, Texas Instruments Incorporated
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  *
9  * * Redistributions of source code must retain the above copyright
10  * notice, this list of conditions and the following disclaimer.
11  *
12  * * Redistributions in binary form must reproduce the above copyright
13  * notice, this list of conditions and the following disclaimer in the
14  * documentation and/or other materials provided with the distribution.
15  *
16  * * Neither the name of Texas Instruments Incorporated nor the names of
17  * its contributors may be used to endorse or promote products derived
18  * from this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  */
151 #ifndef ti_drivers_GPIOTiva__include
152 #define ti_drivers_GPIOTiva__include
153 
154 #ifdef __cplusplus
155 extern "C" {
156 #endif
157 
158 #include <stdint.h>
159 
160 #include <ti/drivers/GPIO.h>
161 
165 typedef struct GPIOTiva_Config {
168 
171 
174 
177 
192  uint32_t intPriority;
194 
202 #define GPIOTiva_EMPTY_PIN 0x0000
203 
204 #define GPIOTiva_PA_0 0x0001
205 #define GPIOTiva_PA_1 0x0002
206 #define GPIOTiva_PA_2 0x0004
207 #define GPIOTiva_PA_3 0x0008
208 #define GPIOTiva_PA_4 0x0010
209 #define GPIOTiva_PA_5 0x0020
210 #define GPIOTiva_PA_6 0x0040
211 #define GPIOTiva_PA_7 0x0080
212 
213 #define GPIOTiva_PB_0 0x0101
214 #define GPIOTiva_PB_1 0x0102
215 #define GPIOTiva_PB_2 0x0104
216 #define GPIOTiva_PB_3 0x0108
217 #define GPIOTiva_PB_4 0x0110
218 #define GPIOTiva_PB_5 0x0120
219 #define GPIOTiva_PB_6 0x0140
220 #define GPIOTiva_PB_7 0x0180
221 
222 #define GPIOTiva_PC_0 0x0201
223 #define GPIOTiva_PC_1 0x0202
224 #define GPIOTiva_PC_2 0x0204
225 #define GPIOTiva_PC_3 0x0208
226 #define GPIOTiva_PC_4 0x0210
227 #define GPIOTiva_PC_5 0x0220
228 #define GPIOTiva_PC_6 0x0240
229 #define GPIOTiva_PC_7 0x0280
230 
231 #define GPIOTiva_PD_0 0x0301
232 #define GPIOTiva_PD_1 0x0302
233 #define GPIOTiva_PD_2 0x0304
234 #define GPIOTiva_PD_3 0x0308
235 #define GPIOTiva_PD_4 0x0310
236 #define GPIOTiva_PD_5 0x0320
237 #define GPIOTiva_PD_6 0x0340
238 #define GPIOTiva_PD_7 0x0380
239 
240 #define GPIOTiva_PE_0 0x0401
241 #define GPIOTiva_PE_1 0x0402
242 #define GPIOTiva_PE_2 0x0404
243 #define GPIOTiva_PE_3 0x0408
244 #define GPIOTiva_PE_4 0x0410
245 #define GPIOTiva_PE_5 0x0420
246 #define GPIOTiva_PE_6 0x0440
247 #define GPIOTiva_PE_7 0x0480
248 
249 #define GPIOTiva_PF_0 0x0501
250 #define GPIOTiva_PF_1 0x0502
251 #define GPIOTiva_PF_2 0x0504
252 #define GPIOTiva_PF_3 0x0508
253 #define GPIOTiva_PF_4 0x0510
254 #define GPIOTiva_PF_5 0x0520
255 #define GPIOTiva_PF_6 0x0540
256 #define GPIOTiva_PF_7 0x0580
257 
258 #define GPIOTiva_PG_0 0x0601
259 #define GPIOTiva_PG_1 0x0602
260 #define GPIOTiva_PG_2 0x0604
261 #define GPIOTiva_PG_3 0x0608
262 #define GPIOTiva_PG_4 0x0610
263 #define GPIOTiva_PG_5 0x0620
264 #define GPIOTiva_PG_6 0x0640
265 #define GPIOTiva_PG_7 0x0680
266 
267 #define GPIOTiva_PH_0 0x0701
268 #define GPIOTiva_PH_1 0x0702
269 #define GPIOTiva_PH_2 0x0704
270 #define GPIOTiva_PH_3 0x0708
271 #define GPIOTiva_PH_4 0x0710
272 #define GPIOTiva_PH_5 0x0720
273 #define GPIOTiva_PH_6 0x0740
274 #define GPIOTiva_PH_7 0x0780
275 
276 #define GPIOTiva_PJ_0 0x0801
277 #define GPIOTiva_PJ_1 0x0802
278 #define GPIOTiva_PJ_2 0x0804
279 #define GPIOTiva_PJ_3 0x0808
280 #define GPIOTiva_PJ_4 0x0810
281 #define GPIOTiva_PJ_5 0x0820
282 #define GPIOTiva_PJ_6 0x0840
283 #define GPIOTiva_PJ_7 0x0880
284 
285 #define GPIOTiva_PK_0 0x0901
286 #define GPIOTiva_PK_1 0x0902
287 #define GPIOTiva_PK_2 0x0904
288 #define GPIOTiva_PK_3 0x0908
289 #define GPIOTiva_PK_4 0x0910
290 #define GPIOTiva_PK_5 0x0920
291 #define GPIOTiva_PK_6 0x0940
292 #define GPIOTiva_PK_7 0x0980
293 
294 #define GPIOTiva_PL_0 0x0A01
295 #define GPIOTiva_PL_1 0x0A02
296 #define GPIOTiva_PL_2 0x0A04
297 #define GPIOTiva_PL_3 0x0A08
298 #define GPIOTiva_PL_4 0x0A10
299 #define GPIOTiva_PL_5 0x0A20
300 #define GPIOTiva_PL_6 0x0A40
301 #define GPIOTiva_PL_7 0x0A80
302 
303 #define GPIOTiva_PM_0 0x0B01
304 #define GPIOTiva_PM_1 0x0B02
305 #define GPIOTiva_PM_2 0x0B04
306 #define GPIOTiva_PM_3 0x0B08
307 #define GPIOTiva_PM_4 0x0B10
308 #define GPIOTiva_PM_5 0x0B20
309 #define GPIOTiva_PM_6 0x0B40
310 #define GPIOTiva_PM_7 0x0B80
311 
312 #define GPIOTiva_PN_0 0x0C01
313 #define GPIOTiva_PN_1 0x0C02
314 #define GPIOTiva_PN_2 0x0C04
315 #define GPIOTiva_PN_3 0x0C08
316 #define GPIOTiva_PN_4 0x0C10
317 #define GPIOTiva_PN_5 0x0C20
318 #define GPIOTiva_PN_6 0x0C40
319 #define GPIOTiva_PN_7 0x0C80
320 
321 #if defined(TIVAWARE)
322 #define GPIOTiva_PP_0 0x1001
323 #define GPIOTiva_PP_1 0x1002
324 #define GPIOTiva_PP_2 0x1004
325 #define GPIOTiva_PP_3 0x1008
326 #define GPIOTiva_PP_4 0x1010
327 #define GPIOTiva_PP_5 0x1020
328 #define GPIOTiva_PP_6 0x1040
329 #define GPIOTiva_PP_7 0x1080
330 
331 #define GPIOTiva_PQ_0 0x1101
332 #define GPIOTiva_PQ_1 0x1102
333 #define GPIOTiva_PQ_2 0x1104
334 #define GPIOTiva_PQ_3 0x1108
335 #define GPIOTiva_PQ_4 0x1110
336 #define GPIOTiva_PQ_5 0x1120
337 #define GPIOTiva_PQ_6 0x1140
338 #define GPIOTiva_PQ_7 0x1180
339 
340 #define GPIOTiva_PR_0 0x0D01
341 #define GPIOTiva_PR_1 0x0D02
342 #define GPIOTiva_PR_2 0x0D04
343 #define GPIOTiva_PR_3 0x0D08
344 #define GPIOTiva_PR_4 0x0D10
345 #define GPIOTiva_PR_5 0x0D20
346 #define GPIOTiva_PR_6 0x0D40
347 #define GPIOTiva_PR_7 0x0D80
348 
349 #define GPIOTiva_PS_0 0x0E01
350 #define GPIOTiva_PS_1 0x0E02
351 #define GPIOTiva_PS_2 0x0E04
352 #define GPIOTiva_PS_3 0x0E08
353 #define GPIOTiva_PS_4 0x0E10
354 #define GPIOTiva_PS_5 0x0E20
355 #define GPIOTiva_PS_6 0x0E40
356 #define GPIOTiva_PS_7 0x0E80
357 
358 #define GPIOTiva_PT_0 0x0F01
359 #define GPIOTiva_PT_1 0x0F02
360 #define GPIOTiva_PT_2 0x0F04
361 #define GPIOTiva_PT_3 0x0F08
362 
363 #elif defined(MWARE)
364 #define GPIOTiva_PP_0 0x0D01
365 #define GPIOTiva_PP_1 0x0D02
366 #define GPIOTiva_PP_2 0x0D04
367 #define GPIOTiva_PP_3 0x0D08
368 #define GPIOTiva_PP_4 0x0D10
369 #define GPIOTiva_PP_5 0x0D20
370 #define GPIOTiva_PP_6 0x0D40
371 #define GPIOTiva_PP_7 0x0D80
372 
373 #define GPIOTiva_PQ_0 0x0E01
374 #define GPIOTiva_PQ_1 0x0E02
375 #define GPIOTiva_PQ_2 0x0E04
376 #define GPIOTiva_PQ_3 0x0E08
377 #define GPIOTiva_PQ_4 0x0E10
378 #define GPIOTiva_PQ_5 0x0E20
379 #define GPIOTiva_PQ_6 0x0E40
380 #define GPIOTiva_PQ_7 0x0E80
381 
382 #define GPIOTiva_PR_0 0x0F01
383 #define GPIOTiva_PR_1 0x0F02
384 #define GPIOTiva_PR_2 0x0F04
385 #define GPIOTiva_PR_3 0x0F08
386 #define GPIOTiva_PR_4 0x0F10
387 #define GPIOTiva_PR_5 0x0F20
388 #define GPIOTiva_PR_6 0x0F40
389 #define GPIOTiva_PR_7 0x0F80
390 
391 #define GPIOTiva_PS_0 0x1001
392 #define GPIOTiva_PS_1 0x1002
393 #define GPIOTiva_PS_2 0x1004
394 #define GPIOTiva_PS_3 0x1008
395 #define GPIOTiva_PS_4 0x1010
396 #define GPIOTiva_PS_5 0x1020
397 #define GPIOTiva_PS_6 0x1040
398 #define GPIOTiva_PS_7 0x1080
399 
400 #else
401  #error "Either TIVAWARE or MWARE must be defined"
402 #endif
403 
404 #ifdef __cplusplus
405 }
406 #endif
407 
408 #endif /* ti_drivers_GPIOTiva__include */
uint32_t numberOfCallbacks
Definition: GPIOTiva.h:176
GPIO_PinConfig * pinConfigs
Definition: GPIOTiva.h:167
GPIO device specific driver configuration structure.
Definition: GPIOTiva.h:165
void(* GPIO_CallbackFxn)(unsigned int index)
GPIO callback function type.
Definition: GPIO.h:163
uint32_t numberOfPinConfigs
Definition: GPIOTiva.h:173
uint32_t intPriority
Definition: GPIOTiva.h:192
uint32_t GPIO_PinConfig
GPIO pin configuration settings.
Definition: GPIO.h:84
GPIO driver.
GPIO_CallbackFxn * callbacks
Definition: GPIOTiva.h:170
struct GPIOTiva_Config GPIOTiva_Config
GPIO device specific driver configuration structure.
Copyright 2016, Texas Instruments Incorporated