|
PebbleOS v4.47.0-635-gd62d3c7d4
|
Data Structures | |
| struct | pbl_pinctrl_stm32 |
| STM32 pin controller. More... | |
Macros | |
| #define | PBL_PINCTRL_STM32_PINMUX(cell) ((uint32_t)(cell)) |
| A pinmux cell, the pin number and mode of STM32_PINMUX(). | |
| #define | PBL_PINCTRL_STM32_NUM_PORTS 11U |
| Number of GPIO ports of the controller, A to K. | |
| #define | STM32_PINCTRL (&pbl_pinctrl_stm32) |
| Pin controller. | |
| #define | PBL_PINCTRL_STM32_DEFINE(sym, _name, _base, ...) |
| Define the pin controller. | |
Pin options | |
| #define | PBL_PINCTRL_STM32_NO_PULL 0U |
| No pull. | |
| #define | PBL_PINCTRL_STM32_PULL_UP (1U << 16) |
| Pull-up. | |
| #define | PBL_PINCTRL_STM32_PULL_DOWN (2U << 16) |
| Pull-down. | |
| #define | PBL_PINCTRL_STM32_PUSH_PULL 0U |
| Push-pull output. | |
| #define | PBL_PINCTRL_STM32_OPEN_DRAIN PBL_PINCTRL_STM32_OD |
| Open-drain output. | |
| #define | PBL_PINCTRL_STM32_SPEED(n) ((uint32_t)(n) << 21) |
| Output speed, 0 (low) to 3 (very high). | |