![]() |
![]() |
GPIO_PinConfig output pin configuration macros | |
| #define | GPIO_CFG_OUTPUT |
| #define | GPIO_CFG_OUT_STD |
| #define | GPIO_CFG_OUT_OD_NOPULL |
| #define | GPIO_CFG_OUT_OD_PU |
| #define | GPIO_CFG_OUT_OD_PD |
| #define | GPIO_CFG_OUT_STR_LOW |
| #define | GPIO_CFG_OUT_STR_MED |
| #define | GPIO_CFG_OUT_STR_HIGH |
| #define | GPIO_CFG_OUT_HIGH |
| #define | GPIO_CFG_OUT_LOW |
GPIO_PinConfig input pin configuration macros | |
| #define | GPIO_CFG_INPUT |
| #define | GPIO_CFG_IN_NOPULL |
| #define | GPIO_CFG_IN_PU |
| #define | GPIO_CFG_IN_PD |
GPIO_PinConfig nondirectional pin configuration macros | |
| #define | GPIO_CFG_NO_DIR |
GPIO_PinConfig pin inversion configuration macros | |
| #define | GPIO_CFG_INVERT_OFF |
| #define | GPIO_CFG_INVERT_ON |
GPIO_PinConfig pin hysteresis configuration macros | |
| #define | GPIO_CFG_HYSTERESIS_OFF |
| #define | GPIO_CFG_HYSTERESIS_ON |
GPIO_PinConfig slew rate configuration macros | |
| #define | GPIO_CFG_SLEW_NORMAL |
| #define | GPIO_CFG_SLEW_REDUCED |
GPIO_PinConfig interrupt configuration macros | |
| #define | GPIO_CFG_IN_INT_NONE |
| #define | GPIO_CFG_IN_INT_FALLING |
| #define | GPIO_CFG_IN_INT_RISING |
| #define | GPIO_CFG_IN_INT_BOTH_EDGES |
| #define | GPIO_CFG_IN_INT_LOW |
| #define | GPIO_CFG_IN_INT_HIGH |
| #define | GPIO_CFG_INT_DISABLE |
| #define | GPIO_CFG_INT_ENABLE |
GPIO_PinConfig power mode configuration macros | |
For devices that support low power modes, standard GPIO interrupts may be disabled in some modes. These defines allow configuring individual pins as wake-up sources. The GPIO module's wake up configuration is always enabled if it exists, so there is no module-level configuration. See the device-specific header files for details. | |
| #define | GPIO_CFG_SHUTDOWN_WAKE_OFF |
| #define | GPIO_CFG_SHUTDOWN_WAKE_HIGH |
| #define | GPIO_CFG_SHUTDOWN_WAKE_LOW |
GPIO_pinconfig macro preventing configuration | |
Should be used if a pin is configured before the first GPIO_init() call, and should not be overwritten | |
| #define | GPIO_CFG_DO_NOT_CONFIG |
GPIO_Mux configuration macros | |
For additional muxing options, see the directions in the device-specific GPIO driver. | |
| #define | GPIO_MUX_GPIO |
| #define GPIO_CFG_OUTPUT |
Pin is an output. Equivalent to OUT_STD.
| #define GPIO_CFG_OUT_STD |
Output pin is actively driven high and low
| #define GPIO_CFG_OUT_OD_NOPULL |
Output pin is Open Drain
| #define GPIO_CFG_OUT_OD_PU |
Output pin is Open Drain w/ pull up
| #define GPIO_CFG_OUT_OD_PD |
Output pin is Open Drain w/ pull dn
| #define GPIO_CFG_OUT_STR_LOW |
Set output pin strength to low
| #define GPIO_CFG_OUT_STR_MED |
Set output pin strength to medium
| #define GPIO_CFG_OUT_STR_HIGH |
Set output pin strength to high
| #define GPIO_CFG_OUT_HIGH |
Set pin's output to 1.
| #define GPIO_CFG_OUT_LOW |
Set pin's output to 0.
| #define GPIO_CFG_INPUT |
Pin is an input.
| #define GPIO_CFG_IN_NOPULL |
Input pin with no internal PU/PD
| #define GPIO_CFG_IN_PU |
Input pin with internal PU
| #define GPIO_CFG_IN_PD |
Input pin with internal PD
| #define GPIO_CFG_NO_DIR |
Input and output are both disabled. Primarily useful for disabling muxed pins.
| #define GPIO_CFG_INVERT_OFF |
Input/output values are normal (default)
| #define GPIO_CFG_INVERT_ON |
Input/output values are inverted
| #define GPIO_CFG_HYSTERESIS_OFF |
Input hysteresis is disabled (default)
| #define GPIO_CFG_HYSTERESIS_ON |
Input hysteresis is enabled
| #define GPIO_CFG_SLEW_NORMAL |
Output slew rate is unchanged (default)
| #define GPIO_CFG_SLEW_REDUCED |
Output slew rate is reduced
| #define GPIO_CFG_IN_INT_NONE |
No Interrupt (default)
| #define GPIO_CFG_IN_INT_FALLING |
Interrupt on falling edge
| #define GPIO_CFG_IN_INT_RISING |
Interrupt on rising edge
| #define GPIO_CFG_IN_INT_BOTH_EDGES |
Interrupt on both edges
| #define GPIO_CFG_IN_INT_LOW |
Interrupt on low level
| #define GPIO_CFG_IN_INT_HIGH |
Interrupt on high level
| #define GPIO_CFG_INT_DISABLE |
Interrupt disabled (default)
| #define GPIO_CFG_INT_ENABLE |
Interrupt enabled
| #define GPIO_CFG_SHUTDOWN_WAKE_OFF |
This pin will not wake the device up
| #define GPIO_CFG_SHUTDOWN_WAKE_HIGH |
A high value will wake the device from shutdown
| #define GPIO_CFG_SHUTDOWN_WAKE_LOW |
A low value will wake the device from shutdown
| #define GPIO_CFG_DO_NOT_CONFIG |
Prevent this GPIO from being configured by the GPIO driver
| #define GPIO_MUX_GPIO |
Set this pin to be a GPIO (the default)