Go to the source code of this file.
◆ PIN_NO
#define PIN_NO |
( |
|
port, |
|
|
|
line |
|
) |
| (((port) - 'A') * 0x10 + (line)) |
Macro to generate pinmux int using port, pin number and mode arguments This is taken from Linux equivalent st,stm32f429-pinctrl binding.
◆ STM32_AF0
◆ 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_AFR_MASK
#define STM32_AFR_MASK 0xF |
◆ STM32_AFR_SHIFT
#define STM32_AFR_SHIFT 0 |
◆ STM32_ANALOG
#define STM32_ANALOG 0x10 |
◆ STM32_FUNC_ALT_0
#define STM32_FUNC_ALT_0 0 |
PIN configuration bitfield.
Pin configuration is coded with the following fields Alternate Functions [ 0 : 3 ] GPIO Mode [ 4 : 5 ] GPIO Output type [ 6 ] GPIO Speed [ 7 : 8 ] GPIO PUPD config [ 9 : 10 ]
Applicable to STM32F3, STM32F4, STM32L4 series
◆ STM32_FUNC_ALT_1
#define STM32_FUNC_ALT_1 1 |
◆ STM32_FUNC_ALT_10
#define STM32_FUNC_ALT_10 10 |
◆ STM32_FUNC_ALT_11
#define STM32_FUNC_ALT_11 11 |
◆ STM32_FUNC_ALT_12
#define STM32_FUNC_ALT_12 12 |
◆ STM32_FUNC_ALT_13
#define STM32_FUNC_ALT_13 13 |
◆ STM32_FUNC_ALT_14
#define STM32_FUNC_ALT_14 14 |
◆ STM32_FUNC_ALT_15
#define STM32_FUNC_ALT_15 15 |
◆ STM32_FUNC_ALT_2
#define STM32_FUNC_ALT_2 2 |
◆ STM32_FUNC_ALT_3
#define STM32_FUNC_ALT_3 3 |
◆ STM32_FUNC_ALT_4
#define STM32_FUNC_ALT_4 4 |
◆ STM32_FUNC_ALT_5
#define STM32_FUNC_ALT_5 5 |
◆ STM32_FUNC_ALT_6
#define STM32_FUNC_ALT_6 6 |
◆ STM32_FUNC_ALT_7
#define STM32_FUNC_ALT_7 7 |
◆ STM32_FUNC_ALT_8
#define STM32_FUNC_ALT_8 8 |
◆ STM32_FUNC_ALT_9
#define STM32_FUNC_ALT_9 9 |
◆ STM32_MODER_ALT_MODE
◆ STM32_MODER_ANALOG_MODE
◆ STM32_MODER_INPUT_MODE
◆ STM32_MODER_MASK
#define STM32_MODER_MASK 0x3 |
◆ STM32_MODER_OUTPUT_MODE
◆ STM32_MODER_SHIFT
#define STM32_MODER_SHIFT 4 |
◆ STM32_OPENDRAIN_PULLUP
◆ STM32_OSPEEDR_HIGH_SPEED
◆ STM32_OSPEEDR_LOW_SPEED
◆ STM32_OSPEEDR_MASK
#define STM32_OSPEEDR_MASK 0x3 |
◆ STM32_OSPEEDR_MEDIUM_SPEED
◆ STM32_OSPEEDR_SHIFT
#define STM32_OSPEEDR_SHIFT 7 |
◆ STM32_OSPEEDR_VERY_HIGH_SPEED
◆ STM32_OTYPER_MASK
#define STM32_OTYPER_MASK 0x1 |
◆ STM32_OTYPER_OPEN_DRAIN
◆ STM32_OTYPER_PUSH_PULL
◆ STM32_OTYPER_SHIFT
#define STM32_OTYPER_SHIFT 6 |
◆ STM32_PINMUX
#define STM32_PINMUX |
( |
|
port, |
|
|
|
line, |
|
|
|
mode |
|
) |
| (((PIN_NO(port, line)) << 8) | (STM32_ ## mode)) |
◆ STM32_PINMUX_ALT_FUNC_0
◆ STM32_PINMUX_ALT_FUNC_1
◆ STM32_PINMUX_ALT_FUNC_10
◆ STM32_PINMUX_ALT_FUNC_11
◆ STM32_PINMUX_ALT_FUNC_12
◆ STM32_PINMUX_ALT_FUNC_13
◆ STM32_PINMUX_ALT_FUNC_14
◆ STM32_PINMUX_ALT_FUNC_15
◆ STM32_PINMUX_ALT_FUNC_2
◆ STM32_PINMUX_ALT_FUNC_3
◆ STM32_PINMUX_ALT_FUNC_4
◆ STM32_PINMUX_ALT_FUNC_5
◆ STM32_PINMUX_ALT_FUNC_6
◆ STM32_PINMUX_ALT_FUNC_7
◆ STM32_PINMUX_ALT_FUNC_8
◆ STM32_PINMUX_ALT_FUNC_9
◆ STM32_PUPDR_MASK
#define STM32_PUPDR_MASK 0x3 |
◆ STM32_PUPDR_NO_PULL
◆ STM32_PUPDR_PULL_DOWN
◆ STM32_PUPDR_PULL_UP
◆ STM32_PUPDR_SHIFT
#define STM32_PUPDR_SHIFT 9 |
◆ STM32_PUSHPULL_NOPULL
◆ STM32_PUSHPULL_PULLUP