|
BSPACM
20150113
Board Support Package for ARM Cortex-M Microcontrollers
|
#include </prj/arm/bspacm/device/efm32/include/bspacm/periph/gpio.h>
Data Fields | |
| GPIO_P_TypeDef * | port |
| uint8_t | pin |
| uint8_t | mode |
Core structure associating a GPIO port, pin, and port control function.
Example to configure PD0 as output (push/pull):
| uint8_t sBSPACMdeviceEFM32pinmux::mode |
The mode to which the pin should be configured.
MODEL or MODEH register depending on pin. As all pins use the same value/behavior map, and EMLIB is good enough to provide an equivalent enumeration that is pin-independent, use the constants from <em_gpio.h> GPIO_Mode_TypeDef. | uint8_t sBSPACMdeviceEFM32pinmux::pin |
The pin number, ranging from 0 through 15.
| GPIO_P_TypeDef* sBSPACMdeviceEFM32pinmux::port |
The port that is responsible for the pin. Leave this null if the pinmux is unused for the specific configuration that contains it. Example:
1.8.9