GPIOCC32XX.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  */
142 #ifndef ti_drivers_GPIOCC32XX__include
143 #define ti_drivers_GPIOCC32XX__include
144 
145 #include <stdint.h>
146 #include <ti/drivers/GPIO.h>
147 
148 #ifdef __cplusplus
149 extern "C" {
150 #endif
151 
176 typedef struct {
179 
182 
185 
188 
202  uint32_t intPriority;
204 
213 #define GPIOCC32XX_EMPTY_PIN 0x0000
215 #define GPIOCC32XX_GPIO_00 0x0001
216 #define GPIOCC32XX_GPIO_01 0x0002
217 #define GPIOCC32XX_GPIO_02 0x0004
218 #define GPIOCC32XX_GPIO_03 0x0008
219 #define GPIOCC32XX_GPIO_04 0x0010
220 #define GPIOCC32XX_GPIO_05 0x0020
221 #define GPIOCC32XX_GPIO_06 0x0040
222 #define GPIOCC32XX_GPIO_07 0x0080
224 #define GPIOCC32XX_GPIO_08 0x0101
225 #define GPIOCC32XX_GPIO_09 0x0102
226 #define GPIOCC32XX_GPIO_10 0x0104
227 #define GPIOCC32XX_GPIO_11 0x0108
228 #define GPIOCC32XX_GPIO_12 0x0110
229 #define GPIOCC32XX_GPIO_13 0x0120
230 #define GPIOCC32XX_GPIO_14 0x0140
231 #define GPIOCC32XX_GPIO_15 0x0180
233 #define GPIOCC32XX_GPIO_16 0x0201
234 #define GPIOCC32XX_GPIO_17 0x0202
235 #define GPIOCC32XX_GPIO_22 0x0240
236 #define GPIOCC32XX_GPIO_23 0x0280
238 #define GPIOCC32XX_GPIO_24 0x0301
239 #define GPIOCC32XX_GPIO_25 0x0302
240 #define GPIOCC32XX_GPIO_26 0x0304
241 #define GPIOCC32XX_GPIO_27 0x0308
242 #define GPIOCC32XX_GPIO_28 0x0310
243 #define GPIOCC32XX_GPIO_29 0x0320
244 #define GPIOCC32XX_GPIO_30 0x0340
245 #define GPIOCC32XX_GPIO_31 0x0380
247 #define GPIOCC32XX_GPIO_32 0x0401
254 #define GPIOCC32XX_USE_STATIC 0x8000
259 #ifdef __cplusplus
260 }
261 #endif
262 
263 #endif /* ti_drivers_GPIOCC32XX__include */
uint32_t intPriority
Definition: GPIOCC32XX.h:202
GPIO_PinConfig * pinConfigs
Definition: GPIOCC32XX.h:178
GPIO_CallbackFxn * callbacks
Definition: GPIOCC32XX.h:181
GPIO device specific driver configuration structure.
Definition: GPIOCC32XX.h:176
uint32_t GPIO_PinConfig
GPIO pin configuration settings.
Definition: GPIO.h:327
General Purpose I/O driver interface.
uint32_t numberOfPinConfigs
Definition: GPIOCC32XX.h:184
void(* GPIO_CallbackFxn)(uint_least8_t index)
GPIO callback function type.
Definition: GPIO.h:415
uint32_t numberOfCallbacks
Definition: GPIOCC32XX.h:187
© Copyright 1995-2019, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale