GPIO driver implementation for MSP432 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:
Only pins 2.0 thru 2.3 support high output drive strength. All other pins only support low drive strength. For pins that do not support high output drive strength, the GPIO_CFG_OUT_STR_XXX setting is ignored.
Go to the source code of this file.
Data Structures | |
struct | GPIOMSP432_Config |
GPIO device specific driver configuration structure. More... | |
Typedefs | |
typedef struct GPIOMSP432_Config | GPIOMSP432_Config |
GPIO device specific driver configuration structure. More... | |
typedef struct GPIOMSP432_Config GPIOMSP432_Config |
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: