TI-RTOS Drivers  tidrivers_full_2_20_00_08
GPIOCC26XX.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  */
157 #ifndef ti_drivers_GPIOCC26XX__include
158 #define ti_drivers_GPIOCC26XX__include
159 
160 #ifdef __cplusplus
161 extern "C" {
162 #endif
163 
164 #include <stdint.h>
165 #include <driverlib/ioc.h>
166 
167 #include <ti/drivers/GPIO.h>
168 
172 typedef struct GPIOCC26XX_Config {
175 
178 
181 
184 
200  uint32_t intPriority;
202 
209 #define GPIOCC26XX_EMPTY_PIN 0xffff
210 
211 #define GPIOCC26XX_DIO_00 IOID_0
212 #define GPIOCC26XX_DIO_01 IOID_1
213 #define GPIOCC26XX_DIO_02 IOID_2
214 #define GPIOCC26XX_DIO_03 IOID_3
215 #define GPIOCC26XX_DIO_04 IOID_4
216 #define GPIOCC26XX_DIO_05 IOID_5
217 #define GPIOCC26XX_DIO_06 IOID_6
218 #define GPIOCC26XX_DIO_07 IOID_7
219 
220 #define GPIOCC26XX_DIO_08 IOID_8
221 #define GPIOCC26XX_DIO_09 IOID_9
222 #define GPIOCC26XX_DIO_10 IOID_10
223 #define GPIOCC26XX_DIO_11 IOID_11
224 #define GPIOCC26XX_DIO_12 IOID_12
225 #define GPIOCC26XX_DIO_13 IOID_13
226 #define GPIOCC26XX_DIO_14 IOID_14
227 #define GPIOCC26XX_DIO_15 IOID_15
228 
229 #define GPIOCC26XX_DIO_16 IOID_16
230 #define GPIOCC26XX_DIO_17 IOID_17
231 #define GPIOCC26XX_DIO_18 IOID_18
232 #define GPIOCC26XX_DIO_19 IOID_19
233 #define GPIOCC26XX_DIO_20 IOID_20
234 #define GPIOCC26XX_DIO_21 IOID_21
235 #define GPIOCC26XX_DIO_22 IOID_22
236 #define GPIOCC26XX_DIO_23 IOID_23
237 
238 #define GPIOCC26XX_DIO_24 IOID_24
239 #define GPIOCC26XX_DIO_25 IOID_25
240 #define GPIOCC26XX_DIO_26 IOID_26
241 #define GPIOCC26XX_DIO_27 IOID_27
242 #define GPIOCC26XX_DIO_28 IOID_28
243 #define GPIOCC26XX_DIO_29 IOID_29
244 #define GPIOCC26XX_DIO_30 IOID_30
245 #define GPIOCC26XX_DIO_31 IOID_31
246 
255 extern void GPIOCC26xx_release(int index);
256 
257 #ifdef __cplusplus
258 }
259 #endif
260 
261 #endif /* ti_drivers_GPIOCC26XX__include */
uint32_t numberOfCallbacks
Definition: GPIOCC26XX.h:183
GPIO_CallbackFxn * callbacks
Definition: GPIOCC26XX.h:177
struct GPIOCC26XX_Config GPIOCC26XX_Config
GPIO device specific driver configuration structure.
GPIO device specific driver configuration structure.
Definition: GPIOCC26XX.h:172
GPIO_PinConfig * pinConfigs
Definition: GPIOCC26XX.h:174
uint32_t numberOfPinConfigs
Definition: GPIOCC26XX.h:180
void(* GPIO_CallbackFxn)(unsigned int index)
GPIO callback function type.
Definition: GPIO.h:163
uint32_t GPIO_PinConfig
GPIO pin configuration settings.
Definition: GPIO.h:84
void GPIOCC26xx_release(int index)
Un-oonfigure a GPIO pin.
GPIO driver.
uint32_t intPriority
Definition: GPIOCC26XX.h:200
Copyright 2016, Texas Instruments Incorporated