GPIOCC26XX.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  */
137 #ifndef ti_drivers_GPIOCC26XX__include
138 #define ti_drivers_GPIOCC26XX__include
139 
140 #include <stdint.h>
141 
142 #include <ti/drivers/GPIO.h>
143 #include <ti/devices/DeviceFamily.h>
144 
145 #include DeviceFamily_constructPath(driverlib/ioc.h)
146 
147 #ifdef __cplusplus
148 extern "C" {
149 #endif
150 
175 typedef struct {
178 
181 
184 
187 
201  uint32_t intPriority;
203 
212 #define GPIOCC26XX_EMPTY_PIN 0xffff
214 #define GPIOCC26XX_DIO_00 IOID_0
215 #define GPIOCC26XX_DIO_01 IOID_1
216 #define GPIOCC26XX_DIO_02 IOID_2
217 #define GPIOCC26XX_DIO_03 IOID_3
218 #define GPIOCC26XX_DIO_04 IOID_4
219 #define GPIOCC26XX_DIO_05 IOID_5
220 #define GPIOCC26XX_DIO_06 IOID_6
221 #define GPIOCC26XX_DIO_07 IOID_7
223 #define GPIOCC26XX_DIO_08 IOID_8
224 #define GPIOCC26XX_DIO_09 IOID_9
225 #define GPIOCC26XX_DIO_10 IOID_10
226 #define GPIOCC26XX_DIO_11 IOID_11
227 #define GPIOCC26XX_DIO_12 IOID_12
228 #define GPIOCC26XX_DIO_13 IOID_13
229 #define GPIOCC26XX_DIO_14 IOID_14
230 #define GPIOCC26XX_DIO_15 IOID_15
232 #define GPIOCC26XX_DIO_16 IOID_16
233 #define GPIOCC26XX_DIO_17 IOID_17
234 #define GPIOCC26XX_DIO_18 IOID_18
235 #define GPIOCC26XX_DIO_19 IOID_19
236 #define GPIOCC26XX_DIO_20 IOID_20
237 #define GPIOCC26XX_DIO_21 IOID_21
238 #define GPIOCC26XX_DIO_22 IOID_22
239 #define GPIOCC26XX_DIO_23 IOID_23
241 #define GPIOCC26XX_DIO_24 IOID_24
242 #define GPIOCC26XX_DIO_25 IOID_25
243 #define GPIOCC26XX_DIO_26 IOID_26
244 #define GPIOCC26XX_DIO_27 IOID_27
245 #define GPIOCC26XX_DIO_28 IOID_28
246 #define GPIOCC26XX_DIO_29 IOID_29
247 #define GPIOCC26XX_DIO_30 IOID_30
248 #define GPIOCC26XX_DIO_31 IOID_31
261 extern void GPIOCC26xx_release(int index);
262 
263 #ifdef __cplusplus
264 }
265 #endif
266 
267 #endif /* ti_drivers_GPIOCC26XX__include */
uint32_t numberOfCallbacks
Definition: GPIOCC26XX.h:186
GPIO_CallbackFxn * callbacks
Definition: GPIOCC26XX.h:180
GPIO device specific driver configuration structure.
Definition: GPIOCC26XX.h:175
GPIO_PinConfig * pinConfigs
Definition: GPIOCC26XX.h:177
uint32_t numberOfPinConfigs
Definition: GPIOCC26XX.h:183
uint32_t GPIO_PinConfig
GPIO pin configuration settings.
Definition: GPIO.h:327
General Purpose I/O driver interface.
uint32_t intPriority
Definition: GPIOCC26XX.h:201
void(* GPIO_CallbackFxn)(uint_least8_t index)
GPIO callback function type.
Definition: GPIO.h:415
© Copyright 1995-2019, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale