Go to the source code of this file.
◆ 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_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_MODER_ALT_MODE
◆ STM32_MODER_ANALOG_MODE
◆ STM32_MODER_INPUT_MODE
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 ] GPIO Output data [ 11 ]
◆ STM32_MODER_MASK
#define STM32_MODER_MASK 0x3 |
◆ STM32_MODER_OUTPUT_MODE
◆ STM32_MODER_SHIFT
#define STM32_MODER_SHIFT 4 |
◆ STM32_ODR_0
◆ STM32_ODR_1
◆ STM32_ODR_MASK
#define STM32_ODR_MASK 0x1 |
◆ STM32_ODR_SHIFT
#define STM32_ODR_SHIFT 11 |
◆ 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 ) |
Value:
#define STM32_PORT_SHIFT
Definition stm32-pinctrl.h:46
#define STM32_MODE_MASK
Definition stm32-pinctrl.h:43
#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:42
#define STM32_LINE_MASK
Definition stm32-pinctrl.h:45
#define STM32_LINE_SHIFT
Definition stm32-pinctrl.h:44
#define STM32_PORT_MASK
Definition stm32-pinctrl.h:47
Pin configuration configuration bit field.
Fields:
- mode [ 0 : 4 ]
- line [ 5 : 8 ]
- port [ 9 : 13 ]
- Parameters
-
port | Port ('A'..'P') |
line | Pin (0..15) |
mode | Mode (ANALOG, GPIO_IN, ALTERNATE). |
◆ STM32_PORT_MASK
#define STM32_PORT_MASK 0x1FU |
◆ STM32_PORT_SHIFT
#define STM32_PORT_SHIFT 9U |
◆ 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 |