Data Fields
GPIOCC32XX_Config Struct Reference

GPIO device specific driver configuration structure. More...

#include <GPIOCC32XX.h>

Data Fields

GPIO_PinConfigpinConfigs
 
GPIO_CallbackFxncallbacks
 
uint32_t numberOfPinConfigs
 
uint32_t numberOfCallbacks
 
uint32_t intPriority
 

Detailed Description

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:

const GPIOCC32XX_Config GPIOCC32XX_config = {
.pinConfigs = (GPIO_PinConfig *)gpioPinConfigs,
.callbacks = (GPIO_CallbackFxn *)gpioCallbackFunctions,
.numberOfPinConfigs = sizeof(gpioPinConfigs)/sizeof(GPIO_PinConfig),
.numberOfCallbacks = sizeof(gpioCallbackFunctions)/sizeof(GPIO_CallbackFxn),
.intPriority = (~0)
};

Field Documentation

§ pinConfigs

GPIO_PinConfig* GPIOCC32XX_Config::pinConfigs

Pointer to the board's GPIO_PinConfig array

§ callbacks

GPIO_CallbackFxn* GPIOCC32XX_Config::callbacks

Pointer to the board's GPIO_CallbackFxn array

§ numberOfPinConfigs

uint32_t GPIOCC32XX_Config::numberOfPinConfigs

Number of GPIO_PinConfigs defined

§ numberOfCallbacks

uint32_t GPIOCC32XX_Config::numberOfCallbacks

Number of GPIO_Callbacks defined

§ intPriority

uint32_t GPIOCC32XX_Config::intPriority

Interrupt priority used for call back interrupts.

intPriority is the interrupt priority, as defined by the underlying OS. It is passed unmodified to the underlying OS's interrupt handler creation code, so you need to refer to the OS documentation for usage. If the driver uses the ti.dpl interface instead of making OS calls directly, then the HwiP port handles the interrupt priority in an OS specific way. In the case of the SYS/BIOS port, intPriority is passed unmodified to Hwi_create().

Setting ~0 will configure the lowest possible priority


The documentation for this struct was generated from the following file:
© Copyright 1995-2019, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale