GPIOCC26XX.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015-2016, 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 
148 #ifdef DEVICE_FAMILY
149  #undef DEVICE_FAMILY_PATH
150  #define DEVICE_FAMILY_PATH(x) <ti/devices/DEVICE_FAMILY/x>
151  #include DEVICE_FAMILY_PATH(driverlib/ioc.h)
152 #else
153  #error "You must define DEVICE_FAMILY at the project level as one of cc26x0, cc26x0r2, cc13x0, etc."
154 #endif
155 
156 
181 typedef struct GPIOCC26XX_Config {
184 
187 
190 
193 
209  uint32_t intPriority;
211 
220 #define GPIOCC26XX_EMPTY_PIN 0xffff
222 #define GPIOCC26XX_DIO_00 IOID_0
223 #define GPIOCC26XX_DIO_01 IOID_1
224 #define GPIOCC26XX_DIO_02 IOID_2
225 #define GPIOCC26XX_DIO_03 IOID_3
226 #define GPIOCC26XX_DIO_04 IOID_4
227 #define GPIOCC26XX_DIO_05 IOID_5
228 #define GPIOCC26XX_DIO_06 IOID_6
229 #define GPIOCC26XX_DIO_07 IOID_7
231 #define GPIOCC26XX_DIO_08 IOID_8
232 #define GPIOCC26XX_DIO_09 IOID_9
233 #define GPIOCC26XX_DIO_10 IOID_10
234 #define GPIOCC26XX_DIO_11 IOID_11
235 #define GPIOCC26XX_DIO_12 IOID_12
236 #define GPIOCC26XX_DIO_13 IOID_13
237 #define GPIOCC26XX_DIO_14 IOID_14
238 #define GPIOCC26XX_DIO_15 IOID_15
240 #define GPIOCC26XX_DIO_16 IOID_16
241 #define GPIOCC26XX_DIO_17 IOID_17
242 #define GPIOCC26XX_DIO_18 IOID_18
243 #define GPIOCC26XX_DIO_19 IOID_19
244 #define GPIOCC26XX_DIO_20 IOID_20
245 #define GPIOCC26XX_DIO_21 IOID_21
246 #define GPIOCC26XX_DIO_22 IOID_22
247 #define GPIOCC26XX_DIO_23 IOID_23
249 #define GPIOCC26XX_DIO_24 IOID_24
250 #define GPIOCC26XX_DIO_25 IOID_25
251 #define GPIOCC26XX_DIO_26 IOID_26
252 #define GPIOCC26XX_DIO_27 IOID_27
253 #define GPIOCC26XX_DIO_28 IOID_28
254 #define GPIOCC26XX_DIO_29 IOID_29
255 #define GPIOCC26XX_DIO_30 IOID_30
256 #define GPIOCC26XX_DIO_31 IOID_31
269 extern void GPIOCC26xx_release(int index);
270 
271 #ifdef __cplusplus
272 }
273 #endif
274 
275 #endif /* ti_drivers_GPIOCC26XX__include */
uint32_t numberOfCallbacks
Definition: GPIOCC26XX.h:192
GPIO_CallbackFxn * callbacks
Definition: GPIOCC26XX.h:186
struct GPIOCC26XX_Config GPIOCC26XX_Config
GPIO device specific driver configuration structure.
GPIO device specific driver configuration structure.
Definition: GPIOCC26XX.h:181
GPIO_PinConfig * pinConfigs
Definition: GPIOCC26XX.h:183
uint32_t numberOfPinConfigs
Definition: GPIOCC26XX.h:189
uint32_t GPIO_PinConfig
GPIO pin configuration settings.
Definition: GPIO.h:275
GPIO driver.
uint32_t intPriority
Definition: GPIOCC26XX.h:209
void(* GPIO_CallbackFxn)(uint_least8_t index)
GPIO callback function type.
Definition: GPIO.h:363
Copyright 2017, Texas Instruments Incorporated