Data Fields
GPIOMSP432_Config Struct Reference

GPIO device specific driver configuration structure. More...

#include <GPIOMSP432.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 GPIOMSP432_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 GPIOMSP432_Config structure:

const GPIOMSP432_Config GPIOMSP432_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* GPIOMSP432_Config::pinConfigs

Pointer to the board's GPIO_PinConfig array

§ callbacks

GPIO_CallbackFxn* GPIOMSP432_Config::callbacks

Pointer to the board's GPIO_CallbackFxn array

§ numberOfPinConfigs

uint32_t GPIOMSP432_Config::numberOfPinConfigs

number of GPIO_PinConfigs defined

§ numberOfCallbacks

uint32_t GPIOMSP432_Config::numberOfCallbacks

number of GPIO_Callbacks defined

§ intPriority

uint32_t GPIOMSP432_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().

A setting of ~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