TI-RTOS for SimpleLink Wireless MCUs  2.14.03.28
GPIOTiva.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015, 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  */
149 #ifndef ti_drivers_GPIOTiva__include
150 #define ti_drivers_GPIOTiva__include
151 
152 #ifdef __cplusplus
153 extern "C" {
154 #endif
155 
156 #include <stdint.h>
157 
158 #include <ti/drivers/GPIO.h>
159 
163 typedef struct GPIOTiva_Config {
166 
169 
172 
175 
190  uint32_t intPriority;
192 
200 #define GPIOTiva_EMPTY_PIN 0x0000
201 
202 #define GPIOTiva_PA_0 0x0001
203 #define GPIOTiva_PA_1 0x0002
204 #define GPIOTiva_PA_2 0x0004
205 #define GPIOTiva_PA_3 0x0008
206 #define GPIOTiva_PA_4 0x0010
207 #define GPIOTiva_PA_5 0x0020
208 #define GPIOTiva_PA_6 0x0040
209 #define GPIOTiva_PA_7 0x0080
210 
211 #define GPIOTiva_PB_0 0x0101
212 #define GPIOTiva_PB_1 0x0102
213 #define GPIOTiva_PB_2 0x0104
214 #define GPIOTiva_PB_3 0x0108
215 #define GPIOTiva_PB_4 0x0110
216 #define GPIOTiva_PB_5 0x0120
217 #define GPIOTiva_PB_6 0x0140
218 #define GPIOTiva_PB_7 0x0180
219 
220 #define GPIOTiva_PC_0 0x0201
221 #define GPIOTiva_PC_1 0x0202
222 #define GPIOTiva_PC_2 0x0204
223 #define GPIOTiva_PC_3 0x0208
224 #define GPIOTiva_PC_4 0x0210
225 #define GPIOTiva_PC_5 0x0220
226 #define GPIOTiva_PC_6 0x0240
227 #define GPIOTiva_PC_7 0x0280
228 
229 #define GPIOTiva_PD_0 0x0301
230 #define GPIOTiva_PD_1 0x0302
231 #define GPIOTiva_PD_2 0x0304
232 #define GPIOTiva_PD_3 0x0308
233 #define GPIOTiva_PD_4 0x0310
234 #define GPIOTiva_PD_5 0x0320
235 #define GPIOTiva_PD_6 0x0340
236 #define GPIOTiva_PD_7 0x0380
237 
238 #define GPIOTiva_PE_0 0x0401
239 #define GPIOTiva_PE_1 0x0402
240 #define GPIOTiva_PE_2 0x0404
241 #define GPIOTiva_PE_3 0x0408
242 #define GPIOTiva_PE_4 0x0410
243 #define GPIOTiva_PE_5 0x0420
244 #define GPIOTiva_PE_6 0x0440
245 #define GPIOTiva_PE_7 0x0480
246 
247 #define GPIOTiva_PF_0 0x0501
248 #define GPIOTiva_PF_1 0x0502
249 #define GPIOTiva_PF_2 0x0504
250 #define GPIOTiva_PF_3 0x0508
251 #define GPIOTiva_PF_4 0x0510
252 #define GPIOTiva_PF_5 0x0520
253 #define GPIOTiva_PF_6 0x0540
254 #define GPIOTiva_PF_7 0x0580
255 
256 #define GPIOTiva_PG_0 0x0601
257 #define GPIOTiva_PG_1 0x0602
258 #define GPIOTiva_PG_2 0x0604
259 #define GPIOTiva_PG_3 0x0608
260 #define GPIOTiva_PG_4 0x0610
261 #define GPIOTiva_PG_5 0x0620
262 #define GPIOTiva_PG_6 0x0640
263 #define GPIOTiva_PG_7 0x0680
264 
265 #define GPIOTiva_PH_0 0x0701
266 #define GPIOTiva_PH_1 0x0702
267 #define GPIOTiva_PH_2 0x0704
268 #define GPIOTiva_PH_3 0x0708
269 #define GPIOTiva_PH_4 0x0710
270 #define GPIOTiva_PH_5 0x0720
271 #define GPIOTiva_PH_6 0x0740
272 #define GPIOTiva_PH_7 0x0780
273 
274 #define GPIOTiva_PJ_0 0x0801
275 #define GPIOTiva_PJ_1 0x0802
276 #define GPIOTiva_PJ_2 0x0804
277 #define GPIOTiva_PJ_3 0x0808
278 #define GPIOTiva_PJ_4 0x0810
279 #define GPIOTiva_PJ_5 0x0820
280 #define GPIOTiva_PJ_6 0x0840
281 #define GPIOTiva_PJ_7 0x0880
282 
283 #define GPIOTiva_PK_0 0x0901
284 #define GPIOTiva_PK_1 0x0902
285 #define GPIOTiva_PK_2 0x0904
286 #define GPIOTiva_PK_3 0x0908
287 #define GPIOTiva_PK_4 0x0910
288 #define GPIOTiva_PK_5 0x0920
289 #define GPIOTiva_PK_6 0x0940
290 #define GPIOTiva_PK_7 0x0980
291 
292 #define GPIOTiva_PL_0 0x0A01
293 #define GPIOTiva_PL_1 0x0A02
294 #define GPIOTiva_PL_2 0x0A04
295 #define GPIOTiva_PL_3 0x0A08
296 #define GPIOTiva_PL_4 0x0A10
297 #define GPIOTiva_PL_5 0x0A20
298 #define GPIOTiva_PL_6 0x0A40
299 #define GPIOTiva_PL_7 0x0A80
300 
301 #define GPIOTiva_PM_0 0x0B01
302 #define GPIOTiva_PM_1 0x0B02
303 #define GPIOTiva_PM_2 0x0B04
304 #define GPIOTiva_PM_3 0x0B08
305 #define GPIOTiva_PM_4 0x0B10
306 #define GPIOTiva_PM_5 0x0B20
307 #define GPIOTiva_PM_6 0x0B40
308 #define GPIOTiva_PM_7 0x0B80
309 
310 #define GPIOTiva_PN_0 0x0C01
311 #define GPIOTiva_PN_1 0x0C02
312 #define GPIOTiva_PN_2 0x0C04
313 #define GPIOTiva_PN_3 0x0C08
314 #define GPIOTiva_PN_4 0x0C10
315 #define GPIOTiva_PN_5 0x0C20
316 #define GPIOTiva_PN_6 0x0C40
317 #define GPIOTiva_PN_7 0x0C80
318 
319 #if defined(TIVAWARE)
320 #define GPIOTiva_PP_0 0x1001
321 #define GPIOTiva_PP_1 0x1002
322 #define GPIOTiva_PP_2 0x1004
323 #define GPIOTiva_PP_3 0x1008
324 #define GPIOTiva_PP_4 0x1010
325 #define GPIOTiva_PP_5 0x1020
326 #define GPIOTiva_PP_6 0x1040
327 #define GPIOTiva_PP_7 0x1080
328 
329 #define GPIOTiva_PQ_0 0x1101
330 #define GPIOTiva_PQ_1 0x1102
331 #define GPIOTiva_PQ_2 0x1104
332 #define GPIOTiva_PQ_3 0x1108
333 #define GPIOTiva_PQ_4 0x1110
334 #define GPIOTiva_PQ_5 0x1120
335 #define GPIOTiva_PQ_6 0x1140
336 #define GPIOTiva_PQ_7 0x1180
337 
338 #define GPIOTiva_PR_0 0x0D01
339 #define GPIOTiva_PR_1 0x0D02
340 #define GPIOTiva_PR_2 0x0D04
341 #define GPIOTiva_PR_3 0x0D08
342 #define GPIOTiva_PR_4 0x0D10
343 #define GPIOTiva_PR_5 0x0D20
344 #define GPIOTiva_PR_6 0x0D40
345 #define GPIOTiva_PR_7 0x0D80
346 
347 #define GPIOTiva_PS_0 0x0E01
348 #define GPIOTiva_PS_1 0x0E02
349 #define GPIOTiva_PS_2 0x0E04
350 #define GPIOTiva_PS_3 0x0E08
351 #define GPIOTiva_PS_4 0x0E10
352 #define GPIOTiva_PS_5 0x0E20
353 #define GPIOTiva_PS_6 0x0E40
354 #define GPIOTiva_PS_7 0x0E80
355 
356 #define GPIOTiva_PT_0 0x0F01
357 #define GPIOTiva_PT_1 0x0F02
358 #define GPIOTiva_PT_2 0x0F04
359 #define GPIOTiva_PT_3 0x0F08
360 
361 #else /* defined(MWARE) */
362 #define GPIOTiva_PP_0 0x0D01
363 #define GPIOTiva_PP_1 0x0D02
364 #define GPIOTiva_PP_2 0x0D04
365 #define GPIOTiva_PP_3 0x0D08
366 #define GPIOTiva_PP_4 0x0D10
367 #define GPIOTiva_PP_5 0x0D20
368 #define GPIOTiva_PP_6 0x0D40
369 #define GPIOTiva_PP_7 0x0D80
370 
371 #define GPIOTiva_PQ_0 0x0E01
372 #define GPIOTiva_PQ_1 0x0E02
373 #define GPIOTiva_PQ_2 0x0E04
374 #define GPIOTiva_PQ_3 0x0E08
375 #define GPIOTiva_PQ_4 0x0E10
376 #define GPIOTiva_PQ_5 0x0E20
377 #define GPIOTiva_PQ_6 0x0E40
378 #define GPIOTiva_PQ_7 0x0E80
379 
380 #define GPIOTiva_PR_0 0x0F01
381 #define GPIOTiva_PR_1 0x0F02
382 #define GPIOTiva_PR_2 0x0F04
383 #define GPIOTiva_PR_3 0x0F08
384 #define GPIOTiva_PR_4 0x0F10
385 #define GPIOTiva_PR_5 0x0F20
386 #define GPIOTiva_PR_6 0x0F40
387 #define GPIOTiva_PR_7 0x0F80
388 
389 #define GPIOTiva_PS_0 0x1001
390 #define GPIOTiva_PS_1 0x1002
391 #define GPIOTiva_PS_2 0x1004
392 #define GPIOTiva_PS_3 0x1008
393 #define GPIOTiva_PS_4 0x1010
394 #define GPIOTiva_PS_5 0x1020
395 #define GPIOTiva_PS_6 0x1040
396 #define GPIOTiva_PS_7 0x1080
397 #endif
398 
399 #ifdef __cplusplus
400 }
401 #endif
402 
403 #endif /* ti_drivers_GPIOTiva__include */
uint32_t numberOfCallbacks
Definition: GPIOTiva.h:174
GPIO_PinConfig * pinConfigs
Definition: GPIOTiva.h:165
GPIO device specific driver configuration structure.
Definition: GPIOTiva.h:163
uint32_t numberOfPinConfigs
Definition: GPIOTiva.h:171
uint32_t intPriority
Definition: GPIOTiva.h:190
uint32_t GPIO_PinConfig
GPIO pin configuration settings.
Definition: GPIO.h:84
GPIO driver.
GPIO_CallbackFxn * callbacks
Definition: GPIOTiva.h:168
struct GPIOTiva_Config GPIOTiva_Config
GPIO device specific driver configuration structure.
void(* GPIO_CallbackFxn)(void)
GPIO callback function type.
Definition: GPIO.h:157
Copyright 2015, Texas Instruments Incorporated