GPIOCC32XX.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015-2017, 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  */
139 #ifndef ti_drivers_GPIOCC32XX__include
140 #define ti_drivers_GPIOCC32XX__include
141 
142 #ifdef __cplusplus
143 extern "C" {
144 #endif
145 
146 #include <stdint.h>
147 #include <ti/drivers/GPIO.h>
148 
173 typedef struct GPIOCC32XX_Config {
176 
179 
182 
185 
201  uint32_t intPriority;
203 
212 #define GPIOCC32XX_EMPTY_PIN 0x0000
214 #define GPIOCC32XX_GPIO_00 0x0001
215 #define GPIOCC32XX_GPIO_01 0x0002
216 #define GPIOCC32XX_GPIO_02 0x0004
217 #define GPIOCC32XX_GPIO_03 0x0008
218 #define GPIOCC32XX_GPIO_04 0x0010
219 #define GPIOCC32XX_GPIO_05 0x0020
220 #define GPIOCC32XX_GPIO_06 0x0040
221 #define GPIOCC32XX_GPIO_07 0x0080
223 #define GPIOCC32XX_GPIO_08 0x0101
224 #define GPIOCC32XX_GPIO_09 0x0102
225 #define GPIOCC32XX_GPIO_10 0x0104
226 #define GPIOCC32XX_GPIO_11 0x0108
227 #define GPIOCC32XX_GPIO_12 0x0110
228 #define GPIOCC32XX_GPIO_13 0x0120
229 #define GPIOCC32XX_GPIO_14 0x0140
230 #define GPIOCC32XX_GPIO_15 0x0180
232 #define GPIOCC32XX_GPIO_16 0x0201
233 #define GPIOCC32XX_GPIO_17 0x0202
234 #define GPIOCC32XX_GPIO_18 0x0204
235 #define GPIOCC32XX_GPIO_19 0x0208
236 #define GPIOCC32XX_GPIO_20 0x0210
237 #define GPIOCC32XX_GPIO_21 0x0220
238 #define GPIOCC32XX_GPIO_22 0x0240
239 #define GPIOCC32XX_GPIO_23 0x0280
241 #define GPIOCC32XX_GPIO_24 0x0301
242 #define GPIOCC32XX_GPIO_25 0x0302
243 #define GPIOCC32XX_GPIO_26 0x0304
244 #define GPIOCC32XX_GPIO_27 0x0308
245 #define GPIOCC32XX_GPIO_28 0x0310
246 #define GPIOCC32XX_GPIO_29 0x0320
247 #define GPIOCC32XX_GPIO_30 0x0340
248 #define GPIOCC32XX_GPIO_31 0x0380
250 #define GPIOCC32XX_GPIO_32 0x0401
257 #define GPIOCC32XX_USE_STATIC 0x8000
262 #ifdef __cplusplus
263 }
264 #endif
265 
266 #endif /* ti_drivers_GPIOCC32XX__include */
struct GPIOCC32XX_Config GPIOCC32XX_Config
GPIO device specific driver configuration structure.
uint32_t intPriority
Definition: GPIOCC32XX.h:201
GPIO_PinConfig * pinConfigs
Definition: GPIOCC32XX.h:175
GPIO_CallbackFxn * callbacks
Definition: GPIOCC32XX.h:178
GPIO device specific driver configuration structure.
Definition: GPIOCC32XX.h:173
uint32_t GPIO_PinConfig
GPIO pin configuration settings.
Definition: GPIO.h:275
GPIO driver.
uint32_t numberOfPinConfigs
Definition: GPIOCC32XX.h:181
void(* GPIO_CallbackFxn)(uint_least8_t index)
GPIO callback function type.
Definition: GPIO.h:363
uint32_t numberOfCallbacks
Definition: GPIOCC32XX.h:184
Copyright 2017, Texas Instruments Incorporated