Go to the source code of this file.
◆ STM32_AF0
Originally derived from Linux: include/dt-bindings/pinctrl/stm32-pinfunc.h.
For compatibility with Linux, the STM32_PINMUX macro and pinmux property have been retained. However, the resulting value is not saved as-is inside the image: during compilation, information is extracted from pinmux and saved in a custom format (c.f. soc/st/stm32/common/pinctrl_soc.h)
Pin modes
◆ STM32_AF1
◆ STM32_AF10
◆ STM32_AF11
◆ STM32_AF12
◆ STM32_AF13
◆ STM32_AF14
◆ STM32_AF15
◆ STM32_AF2
◆ STM32_AF3
◆ STM32_AF4
◆ STM32_AF5
◆ STM32_AF6
◆ STM32_AF7
◆ STM32_AF8
◆ STM32_AF9
◆ STM32_ANALOG
| #define STM32_ANALOG 0x10 |
◆ STM32_GPIO
◆ STM32_LINE_MASK
| #define STM32_LINE_MASK 0xFU |
◆ STM32_LINE_SHIFT
| #define STM32_LINE_SHIFT 5U |
◆ STM32_MODE_MASK
| #define STM32_MODE_MASK 0x1FU |
◆ STM32_MODE_SHIFT
| #define STM32_MODE_SHIFT 0U |
Macro to generate pinmux int using port, pin number and mode arguments This is inspired from Linux equivalent st,stm32f429-pinctrl binding.
◆ STM32_PINMUX
| #define STM32_PINMUX |
( |
| port, |
|
|
| line, |
|
|
| mode ) |
Value:
#define STM32_PORT_SHIFT
Definition stm32-pinctrl.h:53
#define STM32_MODE_MASK
Definition stm32-pinctrl.h:50
#define STM32_MODE_SHIFT
Macro to generate pinmux int using port, pin number and mode arguments This is inspired from Linux eq...
Definition stm32-pinctrl.h:49
#define STM32_LINE_MASK
Definition stm32-pinctrl.h:52
#define STM32_LINE_SHIFT
Definition stm32-pinctrl.h:51
#define STM32_PORT_MASK
Definition stm32-pinctrl.h:54
Pin configuration configuration bit field.
Fields:
- mode [ 0 : 4 ]
- line [ 5 : 8 ]
- port [ 9 : 13 ]
- Parameters
-
| port | Port ('A'..'Q', 'Z') |
| line | Pin (0..15) |
| mode | Mode (ANALOG, GPIO, ALTERNATE). |
◆ STM32_PORT_MASK
| #define STM32_PORT_MASK 0x1FU |
◆ STM32_PORT_SHIFT
| #define STM32_PORT_SHIFT 9U |