TI-RTOS for SimpleLink Wireless MCUs  2.14.02.22
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 
189  uint32_t intPriority;
191 
199 #define GPIOMSP432_EMPTY_PIN 0x0000
200 
201 /*
202  * Only ports 1-6 support interrupts
203  * and can be configured with callbacks
204  */
205 #define GPIOMSP432_P1_0 0x101
206 #define GPIOMSP432_P1_1 0x102
207 #define GPIOMSP432_P1_2 0x104
208 #define GPIOMSP432_P1_3 0x108
209 #define GPIOMSP432_P1_4 0x110
210 #define GPIOMSP432_P1_5 0x120
211 #define GPIOMSP432_P1_6 0x140
212 #define GPIOMSP432_P1_7 0x180
213 
214 #define GPIOMSP432_P2_0 0x201
215 #define GPIOMSP432_P2_1 0x202
216 #define GPIOMSP432_P2_2 0x204
217 #define GPIOMSP432_P2_3 0x208
218 #define GPIOMSP432_P2_4 0x210
219 #define GPIOMSP432_P2_5 0x220
220 #define GPIOMSP432_P2_6 0x240
221 #define GPIOMSP432_P2_7 0x280
222 
223 #define GPIOMSP432_P3_0 0x301
224 #define GPIOMSP432_P3_1 0x302
225 #define GPIOMSP432_P3_2 0x304
226 #define GPIOMSP432_P3_3 0x308
227 #define GPIOMSP432_P3_4 0x310
228 #define GPIOMSP432_P3_5 0x320
229 #define GPIOMSP432_P3_6 0x340
230 #define GPIOMSP432_P3_7 0x380
231 
232 #define GPIOMSP432_P4_0 0x401
233 #define GPIOMSP432_P4_1 0x402
234 #define GPIOMSP432_P4_2 0x404
235 #define GPIOMSP432_P4_3 0x408
236 #define GPIOMSP432_P4_4 0x410
237 #define GPIOMSP432_P4_5 0x420
238 #define GPIOMSP432_P4_6 0x440
239 #define GPIOMSP432_P4_7 0x480
240 
241 #define GPIOMSP432_P5_0 0x501
242 #define GPIOMSP432_P5_1 0x502
243 #define GPIOMSP432_P5_2 0x504
244 #define GPIOMSP432_P5_3 0x508
245 #define GPIOMSP432_P5_4 0x510
246 #define GPIOMSP432_P5_5 0x520
247 #define GPIOMSP432_P5_6 0x540
248 #define GPIOMSP432_P5_7 0x580
249 
250 #define GPIOMSP432_P6_0 0x601
251 #define GPIOMSP432_P6_1 0x602
252 #define GPIOMSP432_P6_2 0x604
253 #define GPIOMSP432_P6_3 0x608
254 #define GPIOMSP432_P6_4 0x610
255 #define GPIOMSP432_P6_5 0x620
256 #define GPIOMSP432_P6_6 0x640
257 #define GPIOMSP432_P6_7 0x680
258 
259 /*
260  * Ports 7-10 and 'J' do NOT support interrupts
261  * and therefore can not be configured with
262  * callbacks
263  */
264 #define GPIOMSP432_P7_0 0x701
265 #define GPIOMSP432_P7_1 0x702
266 #define GPIOMSP432_P7_2 0x704
267 #define GPIOMSP432_P7_3 0x708
268 #define GPIOMSP432_P7_4 0x710
269 #define GPIOMSP432_P7_5 0x720
270 #define GPIOMSP432_P7_6 0x740
271 #define GPIOMSP432_P7_7 0x780
272 
273 #define GPIOMSP432_P8_0 0x801
274 #define GPIOMSP432_P8_1 0x802
275 #define GPIOMSP432_P8_2 0x804
276 #define GPIOMSP432_P8_3 0x808
277 #define GPIOMSP432_P8_4 0x810
278 #define GPIOMSP432_P8_5 0x820
279 #define GPIOMSP432_P8_6 0x840
280 #define GPIOMSP432_P8_7 0x880
281 
282 #define GPIOMSP432_P9_0 0x901
283 #define GPIOMSP432_P9_1 0x902
284 #define GPIOMSP432_P9_2 0x904
285 #define GPIOMSP432_P9_3 0x908
286 #define GPIOMSP432_P9_4 0x910
287 #define GPIOMSP432_P9_5 0x920
288 #define GPIOMSP432_P9_6 0x940
289 #define GPIOMSP432_P9_7 0x980
290 
291 #define GPIOMSP432_P10_0 0xa01
292 #define GPIOMSP432_P10_1 0xa02
293 #define GPIOMSP432_P10_2 0xa04
294 #define GPIOMSP432_P10_3 0xa08
295 #define GPIOMSP432_P10_4 0xa10
296 #define GPIOMSP432_P10_5 0xa20
297 #define GPIOMSP432_P10_6 0xa40
298 #define GPIOMSP432_P10_7 0xa80
299 
300 #define GPIOMSP432_PJ_0 0xb01
301 #define GPIOMSP432_PJ_1 0xb02
302 #define GPIOMSP432_PJ_2 0xb04
303 #define GPIOMSP432_PJ_3 0xb08
304 #define GPIOMSP432_PJ_4 0xb10
305 #define GPIOMSP432_PJ_5 0xb20
306 #define GPIOMSP432_PJ_6 0xb40
307 #define GPIOMSP432_PJ_7 0xb80
308 
309 #ifdef __cplusplus
310 }
311 #endif
312 
313 #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:189
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