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