GPIOMSP432.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015-2019, 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_GPIOMSP432__include
150 #define ti_drivers_GPIOMSP432__include
151 
152 #include <stdint.h>
153 #include <ti/drivers/GPIO.h>
154 
155 #ifdef __cplusplus
156 extern "C" {
157 #endif
158 
183 typedef struct {
186 
189 
192 
195 
209  uint32_t intPriority;
211 
221 #define GPIOMSP432_EMPTY_PIN 0x0000
227 #define GPIOMSP432_P1_0 0x101
228 #define GPIOMSP432_P1_1 0x102
229 #define GPIOMSP432_P1_2 0x104
230 #define GPIOMSP432_P1_3 0x108
231 #define GPIOMSP432_P1_4 0x110
232 #define GPIOMSP432_P1_5 0x120
233 #define GPIOMSP432_P1_6 0x140
234 #define GPIOMSP432_P1_7 0x180
236 #define GPIOMSP432_P2_0 0x201
237 #define GPIOMSP432_P2_1 0x202
238 #define GPIOMSP432_P2_2 0x204
239 #define GPIOMSP432_P2_3 0x208
240 #define GPIOMSP432_P2_4 0x210
241 #define GPIOMSP432_P2_5 0x220
242 #define GPIOMSP432_P2_6 0x240
243 #define GPIOMSP432_P2_7 0x280
245 #define GPIOMSP432_P3_0 0x301
246 #define GPIOMSP432_P3_1 0x302
247 #define GPIOMSP432_P3_2 0x304
248 #define GPIOMSP432_P3_3 0x308
249 #define GPIOMSP432_P3_4 0x310
250 #define GPIOMSP432_P3_5 0x320
251 #define GPIOMSP432_P3_6 0x340
252 #define GPIOMSP432_P3_7 0x380
254 #define GPIOMSP432_P4_0 0x401
255 #define GPIOMSP432_P4_1 0x402
256 #define GPIOMSP432_P4_2 0x404
257 #define GPIOMSP432_P4_3 0x408
258 #define GPIOMSP432_P4_4 0x410
259 #define GPIOMSP432_P4_5 0x420
260 #define GPIOMSP432_P4_6 0x440
261 #define GPIOMSP432_P4_7 0x480
263 #define GPIOMSP432_P5_0 0x501
264 #define GPIOMSP432_P5_1 0x502
265 #define GPIOMSP432_P5_2 0x504
266 #define GPIOMSP432_P5_3 0x508
267 #define GPIOMSP432_P5_4 0x510
268 #define GPIOMSP432_P5_5 0x520
269 #define GPIOMSP432_P5_6 0x540
270 #define GPIOMSP432_P5_7 0x580
272 #define GPIOMSP432_P6_0 0x601
273 #define GPIOMSP432_P6_1 0x602
274 #define GPIOMSP432_P6_2 0x604
275 #define GPIOMSP432_P6_3 0x608
276 #define GPIOMSP432_P6_4 0x610
277 #define GPIOMSP432_P6_5 0x620
278 #define GPIOMSP432_P6_6 0x640
279 #define GPIOMSP432_P6_7 0x680
287 #define GPIOMSP432_P7_0 0x701
288 #define GPIOMSP432_P7_1 0x702
289 #define GPIOMSP432_P7_2 0x704
290 #define GPIOMSP432_P7_3 0x708
291 #define GPIOMSP432_P7_4 0x710
292 #define GPIOMSP432_P7_5 0x720
293 #define GPIOMSP432_P7_6 0x740
294 #define GPIOMSP432_P7_7 0x780
296 #define GPIOMSP432_P8_0 0x801
297 #define GPIOMSP432_P8_1 0x802
298 #define GPIOMSP432_P8_2 0x804
299 #define GPIOMSP432_P8_3 0x808
300 #define GPIOMSP432_P8_4 0x810
301 #define GPIOMSP432_P8_5 0x820
302 #define GPIOMSP432_P8_6 0x840
303 #define GPIOMSP432_P8_7 0x880
305 #define GPIOMSP432_P9_0 0x901
306 #define GPIOMSP432_P9_1 0x902
307 #define GPIOMSP432_P9_2 0x904
308 #define GPIOMSP432_P9_3 0x908
309 #define GPIOMSP432_P9_4 0x910
310 #define GPIOMSP432_P9_5 0x920
311 #define GPIOMSP432_P9_6 0x940
312 #define GPIOMSP432_P9_7 0x980
314 #define GPIOMSP432_P10_0 0xa01
315 #define GPIOMSP432_P10_1 0xa02
316 #define GPIOMSP432_P10_2 0xa04
317 #define GPIOMSP432_P10_3 0xa08
318 #define GPIOMSP432_P10_4 0xa10
319 #define GPIOMSP432_P10_5 0xa20
320 #define GPIOMSP432_P10_6 0xa40
321 #define GPIOMSP432_P10_7 0xa80
323 #define GPIOMSP432_PJ_0 0xb01
324 #define GPIOMSP432_PJ_1 0xb02
325 #define GPIOMSP432_PJ_2 0xb04
326 #define GPIOMSP432_PJ_3 0xb08
327 #define GPIOMSP432_PJ_4 0xb10
328 #define GPIOMSP432_PJ_5 0xb20
329 #define GPIOMSP432_PJ_6 0xb40
330 #define GPIOMSP432_PJ_7 0xb80
336 #ifdef __cplusplus
337 }
338 #endif
339 
340 #endif /* ti_drivers_GPIOMSP432__include */
GPIO_PinConfig * pinConfigs
Definition: GPIOMSP432.h:185
uint32_t numberOfPinConfigs
Definition: GPIOMSP432.h:191
uint32_t intPriority
Definition: GPIOMSP432.h:209
GPIO_CallbackFxn * callbacks
Definition: GPIOMSP432.h:188
uint32_t GPIO_PinConfig
GPIO pin configuration settings.
Definition: GPIO.h:327
General Purpose I/O driver interface.
uint32_t numberOfCallbacks
Definition: GPIOMSP432.h:194
GPIO device specific driver configuration structure.
Definition: GPIOMSP432.h:183
void(* GPIO_CallbackFxn)(uint_least8_t index)
GPIO callback function type.
Definition: GPIO.h:415
© Copyright 1995-2019, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale