TI-RTOS Drivers  tidrivers_full_2_20_00_08
GPIOCC3200.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  */
159 #ifndef ti_drivers_GPIOCC3200__include
160 #define ti_drivers_GPIOCC3200__include
161 
162 #ifdef __cplusplus
163 extern "C" {
164 #endif
165 
166 #include <stdint.h>
167 #include <ti/drivers/GPIO.h>
168 
172 typedef struct GPIOCC3200_Config {
175 
178 
181 
184 
200  uint32_t intPriority;
202 
209 #define GPIOCC3200_EMPTY_PIN 0x0000
210 
211 #define GPIOCC3200_GPIO_00 0x0001
212 #define GPIOCC3200_GPIO_01 0x0002
213 #define GPIOCC3200_GPIO_02 0x0004
214 #define GPIOCC3200_GPIO_03 0x0008
215 #define GPIOCC3200_GPIO_04 0x0010
216 #define GPIOCC3200_GPIO_05 0x0020
217 #define GPIOCC3200_GPIO_06 0x0040
218 #define GPIOCC3200_GPIO_07 0x0080
219 
220 #define GPIOCC3200_GPIO_08 0x0101
221 #define GPIOCC3200_GPIO_09 0x0102
222 #define GPIOCC3200_GPIO_10 0x0104
223 #define GPIOCC3200_GPIO_11 0x0108
224 #define GPIOCC3200_GPIO_12 0x0110
225 #define GPIOCC3200_GPIO_13 0x0120
226 #define GPIOCC3200_GPIO_14 0x0140
227 #define GPIOCC3200_GPIO_15 0x0180
228 
229 #define GPIOCC3200_GPIO_16 0x0201
230 #define GPIOCC3200_GPIO_17 0x0202
231 #define GPIOCC3200_GPIO_18 0x0204
232 #define GPIOCC3200_GPIO_19 0x0208
233 #define GPIOCC3200_GPIO_20 0x0210
234 #define GPIOCC3200_GPIO_21 0x0220
235 #define GPIOCC3200_GPIO_22 0x0240
236 #define GPIOCC3200_GPIO_23 0x0280
237 
238 #define GPIOCC3200_GPIO_24 0x0301
239 #define GPIOCC3200_GPIO_25 0x0302
240 #define GPIOCC3200_GPIO_26 0x0304
241 #define GPIOCC3200_GPIO_27 0x0308
242 #define GPIOCC3200_GPIO_28 0x0310
243 #define GPIOCC3200_GPIO_29 0x0320
244 #define GPIOCC3200_GPIO_30 0x0340
245 #define GPIOCC3200_GPIO_31 0x0380
246 
247 #define GPIOCC3200_USE_STATIC 0x8000 /* use statically-defined parking state */
248 
249 #ifdef __cplusplus
250 }
251 #endif
252 
253 #endif /* ti_drivers_GPIOCC3200__include */
GPIO_CallbackFxn * callbacks
Definition: GPIOCC3200.h:177
uint32_t numberOfPinConfigs
Definition: GPIOCC3200.h:180
GPIO device specific driver configuration structure.
Definition: GPIOCC3200.h:172
uint32_t intPriority
Definition: GPIOCC3200.h:200
GPIO_PinConfig * pinConfigs
Definition: GPIOCC3200.h:174
void(* GPIO_CallbackFxn)(unsigned int index)
GPIO callback function type.
Definition: GPIO.h:163
struct GPIOCC3200_Config GPIOCC3200_Config
GPIO device specific driver configuration structure.
uint32_t GPIO_PinConfig
GPIO pin configuration settings.
Definition: GPIO.h:84
uint32_t numberOfCallbacks
Definition: GPIOCC3200.h:183
GPIO driver.
Copyright 2016, Texas Instruments Incorporated