TI-RTOS for SimpleLink Wireless MCUs  2.14.03.28
GPIOMSP432.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  */
161 #ifndef ti_drivers_GPIOMSP432__include
162 #define ti_drivers_GPIOMSP432__include
163 
164 #ifdef __cplusplus
165 extern "C" {
166 #endif
167 
168 #include <stdint.h>
169 #include <ti/drivers/GPIO.h>
170 
174 typedef struct GPIOMSP432_Config {
177 
180 
183 
186 
202  uint32_t intPriority;
204 
212 #define GPIOMSP432_EMPTY_PIN 0x0000
213 
214 /*
215  * Only ports 1-6 support interrupts
216  * and can be configured with callbacks
217  */
218 #define GPIOMSP432_P1_0 0x101
219 #define GPIOMSP432_P1_1 0x102
220 #define GPIOMSP432_P1_2 0x104
221 #define GPIOMSP432_P1_3 0x108
222 #define GPIOMSP432_P1_4 0x110
223 #define GPIOMSP432_P1_5 0x120
224 #define GPIOMSP432_P1_6 0x140
225 #define GPIOMSP432_P1_7 0x180
226 
227 #define GPIOMSP432_P2_0 0x201
228 #define GPIOMSP432_P2_1 0x202
229 #define GPIOMSP432_P2_2 0x204
230 #define GPIOMSP432_P2_3 0x208
231 #define GPIOMSP432_P2_4 0x210
232 #define GPIOMSP432_P2_5 0x220
233 #define GPIOMSP432_P2_6 0x240
234 #define GPIOMSP432_P2_7 0x280
235 
236 #define GPIOMSP432_P3_0 0x301
237 #define GPIOMSP432_P3_1 0x302
238 #define GPIOMSP432_P3_2 0x304
239 #define GPIOMSP432_P3_3 0x308
240 #define GPIOMSP432_P3_4 0x310
241 #define GPIOMSP432_P3_5 0x320
242 #define GPIOMSP432_P3_6 0x340
243 #define GPIOMSP432_P3_7 0x380
244 
245 #define GPIOMSP432_P4_0 0x401
246 #define GPIOMSP432_P4_1 0x402
247 #define GPIOMSP432_P4_2 0x404
248 #define GPIOMSP432_P4_3 0x408
249 #define GPIOMSP432_P4_4 0x410
250 #define GPIOMSP432_P4_5 0x420
251 #define GPIOMSP432_P4_6 0x440
252 #define GPIOMSP432_P4_7 0x480
253 
254 #define GPIOMSP432_P5_0 0x501
255 #define GPIOMSP432_P5_1 0x502
256 #define GPIOMSP432_P5_2 0x504
257 #define GPIOMSP432_P5_3 0x508
258 #define GPIOMSP432_P5_4 0x510
259 #define GPIOMSP432_P5_5 0x520
260 #define GPIOMSP432_P5_6 0x540
261 #define GPIOMSP432_P5_7 0x580
262 
263 #define GPIOMSP432_P6_0 0x601
264 #define GPIOMSP432_P6_1 0x602
265 #define GPIOMSP432_P6_2 0x604
266 #define GPIOMSP432_P6_3 0x608
267 #define GPIOMSP432_P6_4 0x610
268 #define GPIOMSP432_P6_5 0x620
269 #define GPIOMSP432_P6_6 0x640
270 #define GPIOMSP432_P6_7 0x680
271 
272 /*
273  * Ports 7-10 and 'J' do NOT support interrupts
274  * and therefore can not be configured with
275  * callbacks
276  */
277 #define GPIOMSP432_P7_0 0x701
278 #define GPIOMSP432_P7_1 0x702
279 #define GPIOMSP432_P7_2 0x704
280 #define GPIOMSP432_P7_3 0x708
281 #define GPIOMSP432_P7_4 0x710
282 #define GPIOMSP432_P7_5 0x720
283 #define GPIOMSP432_P7_6 0x740
284 #define GPIOMSP432_P7_7 0x780
285 
286 #define GPIOMSP432_P8_0 0x801
287 #define GPIOMSP432_P8_1 0x802
288 #define GPIOMSP432_P8_2 0x804
289 #define GPIOMSP432_P8_3 0x808
290 #define GPIOMSP432_P8_4 0x810
291 #define GPIOMSP432_P8_5 0x820
292 #define GPIOMSP432_P8_6 0x840
293 #define GPIOMSP432_P8_7 0x880
294 
295 #define GPIOMSP432_P9_0 0x901
296 #define GPIOMSP432_P9_1 0x902
297 #define GPIOMSP432_P9_2 0x904
298 #define GPIOMSP432_P9_3 0x908
299 #define GPIOMSP432_P9_4 0x910
300 #define GPIOMSP432_P9_5 0x920
301 #define GPIOMSP432_P9_6 0x940
302 #define GPIOMSP432_P9_7 0x980
303 
304 #define GPIOMSP432_P10_0 0xa01
305 #define GPIOMSP432_P10_1 0xa02
306 #define GPIOMSP432_P10_2 0xa04
307 #define GPIOMSP432_P10_3 0xa08
308 #define GPIOMSP432_P10_4 0xa10
309 #define GPIOMSP432_P10_5 0xa20
310 #define GPIOMSP432_P10_6 0xa40
311 #define GPIOMSP432_P10_7 0xa80
312 
313 #define GPIOMSP432_PJ_0 0xb01
314 #define GPIOMSP432_PJ_1 0xb02
315 #define GPIOMSP432_PJ_2 0xb04
316 #define GPIOMSP432_PJ_3 0xb08
317 #define GPIOMSP432_PJ_4 0xb10
318 #define GPIOMSP432_PJ_5 0xb20
319 #define GPIOMSP432_PJ_6 0xb40
320 #define GPIOMSP432_PJ_7 0xb80
321 
322 #ifdef __cplusplus
323 }
324 #endif
325 
326 #endif /* ti_drivers_GPIOMSP432__include */
GPIO_PinConfig * pinConfigs
Definition: GPIOMSP432.h:176
uint32_t numberOfPinConfigs
Definition: GPIOMSP432.h:182
uint32_t intPriority
Definition: GPIOMSP432.h:202
GPIO_CallbackFxn * callbacks
Definition: GPIOMSP432.h:179
uint32_t GPIO_PinConfig
GPIO pin configuration settings.
Definition: GPIO.h:84
GPIO driver.
struct GPIOMSP432_Config GPIOMSP432_Config
GPIO device specific driver configuration structure.
uint32_t numberOfCallbacks
Definition: GPIOMSP432.h:185
GPIO device specific driver configuration structure.
Definition: GPIOMSP432.h:174
void(* GPIO_CallbackFxn)(void)
GPIO callback function type.
Definition: GPIO.h:157
Copyright 2015, Texas Instruments Incorporated