soc/arm/st_stm32: pinctrl: Prepare pinmux removal

Some pinctrl related definitions are still defined
in pinmux related files.
Duplicate definitions to prepare pinmux removal.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
Erwan Gouriou 2022-03-18 10:15:04 +01:00 committed by Marti Bolivar
commit 7b9a00a074
2 changed files with 11 additions and 0 deletions

View file

@ -43,6 +43,15 @@ typedef struct pinctrl_soc_pin {
*/
#define Z_PINCTRL_STM32_PINMUX_INIT(node_id) DT_PROP(node_id, pinmux)
/**
* @brief Definitions used to initialize fields in #pinctrl_pin_t
*/
#define STM32_NO_PULL 0x0
#define STM32_PULL_UP 0x1
#define STM32_PULL_DOWN 0x2
#define STM32_PUSH_PULL 0x0
#define STM32_OPEN_DRAIN 0x1
#ifdef CONFIG_SOC_SERIES_STM32F1X
/**
* @brief Utility macro to initialize pincfg field in #pinctrl_pin_t (F1).

View file

@ -15,11 +15,13 @@
/* Devicetree related macros to construct pinctrl config data */
#if !defined(CONFIG_PINCTRL_STM32)
#define STM32_NO_PULL 0x0
#define STM32_PULL_UP 0x1
#define STM32_PULL_DOWN 0x2
#define STM32_PUSH_PULL 0x0
#define STM32_OPEN_DRAIN 0x1
#endif /* CONFIG_PINCTRL_STM32 */
/**