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