GPIO driver implementation for CC32xx devices.
============================================================================
The GPIO header file should be included in an application as follows:
Refer to GPIO.h for a complete description of the GPIO driver APIs provided and examples of their use.
In order to use the GPIO APIs, the application is required to provide 3 structures in the Board.c file:
Go to the source code of this file.
Data Structures | |
struct | GPIOCC32XX_Config |
GPIO device specific driver configuration structure. More... | |
Macros | |
Device specific GPIO port/pin identifiers to be used within the board's GPIO_PinConfig table. | |
#define | GPIOCC32XX_EMPTY_PIN |
#define | GPIOCC32XX_GPIO_00 0x0001 |
#define | GPIOCC32XX_GPIO_01 0x0002 |
#define | GPIOCC32XX_GPIO_02 0x0004 |
#define | GPIOCC32XX_GPIO_03 0x0008 |
#define | GPIOCC32XX_GPIO_04 0x0010 |
#define | GPIOCC32XX_GPIO_05 0x0020 |
#define | GPIOCC32XX_GPIO_06 0x0040 |
#define | GPIOCC32XX_GPIO_07 0x0080 |
#define | GPIOCC32XX_GPIO_08 0x0101 |
#define | GPIOCC32XX_GPIO_09 0x0102 |
#define | GPIOCC32XX_GPIO_10 0x0104 |
#define | GPIOCC32XX_GPIO_11 0x0108 |
#define | GPIOCC32XX_GPIO_12 0x0110 |
#define | GPIOCC32XX_GPIO_13 0x0120 |
#define | GPIOCC32XX_GPIO_14 0x0140 |
#define | GPIOCC32XX_GPIO_15 0x0180 |
#define | GPIOCC32XX_GPIO_16 0x0201 |
#define | GPIOCC32XX_GPIO_17 0x0202 |
#define | GPIOCC32XX_GPIO_22 0x0240 |
#define | GPIOCC32XX_GPIO_23 0x0280 |
#define | GPIOCC32XX_GPIO_24 0x0301 |
#define | GPIOCC32XX_GPIO_25 0x0302 |
#define | GPIOCC32XX_GPIO_26 0x0304 |
#define | GPIOCC32XX_GPIO_27 0x0308 |
#define | GPIOCC32XX_GPIO_28 0x0310 |
#define | GPIOCC32XX_GPIO_29 0x0320 |
#define | GPIOCC32XX_GPIO_30 0x0340 |
#define | GPIOCC32XX_GPIO_31 0x0380 |
#define | GPIOCC32XX_GPIO_32 0x0401 |
CC32xx device specific GPIO_PinConfig macros | |
#define | GPIOCC32XX_USE_STATIC |
Typedefs | |
typedef struct GPIOCC32XX_Config | GPIOCC32XX_Config |
GPIO device specific driver configuration structure. More... | |
typedef struct GPIOCC32XX_Config GPIOCC32XX_Config |
GPIO device specific driver configuration structure.
The device specific GPIOCC32XX_Config structure that tells the GPIO driver where the two aforementioned arrays are and the number of elements in each. The interrupt priority of all pins configured to generate interrupts is also specified here. Values for the interrupt priority are device-specific. You should be well-acquainted with the interrupt controller used in your device before setting this parameter to a non-default value. The sentinel value of (~0) (the default value) is used to indicate that the lowest possible priority should be used.
Below is an example of an initialized GPIOCC32XX_Config structure: