Home
last modified time | relevance | path

Searched refs:pin_cgf (Results 1 – 1 of 1) sorted by relevance

/Zephyr-Core-3.5.0/drivers/pinctrl/
Dpinctrl_stm32.c201 static int stm32_pin_configure(uint32_t pin, uint32_t pin_cgf, uint32_t pin_func) in stm32_pin_configure() argument
215 return gpio_stm32_configure(port_device, STM32_PIN(pin), pin_cgf, pin_func); in stm32_pin_configure()
222 uint32_t pin_cgf = 0; in pinctrl_configure_pins() local
241 pin_cgf = pins[i].pincfg | STM32_MODE_OUTPUT | STM32_CNF_ALT_FUNC; in pinctrl_configure_pins()
243 pin_cgf = pins[i].pincfg | STM32_MODE_INPUT | STM32_CNF_IN_ANALOG; in pinctrl_configure_pins()
245 pin_cgf = pins[i].pincfg | STM32_MODE_INPUT; in pinctrl_configure_pins()
246 pupd = pin_cgf & (STM32_PUPD_MASK << STM32_PUPD_SHIFT); in pinctrl_configure_pins()
248 pin_cgf = pin_cgf | STM32_CNF_IN_FLOAT; in pinctrl_configure_pins()
250 pin_cgf = pin_cgf | STM32_CNF_IN_PUPD; in pinctrl_configure_pins()
253 pin_cgf = pins[i].pincfg | STM32_MODE_OUTPUT | STM32_CNF_GP_OUTPUT; in pinctrl_configure_pins()
[all …]