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