Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/pinctrl/
Dpinctrl_stm32.c206 static int stm32_pin_configure(uint32_t pin, uint32_t pin_cgf, uint32_t pin_func) in stm32_pin_configure() argument
220 return gpio_stm32_configure(port_device, STM32_PIN(pin), pin_cgf, pin_func); in stm32_pin_configure()
227 uint32_t pin_cgf = 0; in pinctrl_configure_pins() local
246 pin_cgf = pins[i].pincfg | STM32_MODE_OUTPUT | STM32_CNF_ALT_FUNC; in pinctrl_configure_pins()
248 pin_cgf = pins[i].pincfg | STM32_MODE_INPUT | STM32_CNF_IN_ANALOG; in pinctrl_configure_pins()
250 pin_cgf = pins[i].pincfg | STM32_MODE_INPUT; in pinctrl_configure_pins()
251 pupd = pin_cgf & (STM32_PUPD_MASK << STM32_PUPD_SHIFT); in pinctrl_configure_pins()
253 pin_cgf = pin_cgf | STM32_CNF_IN_FLOAT; in pinctrl_configure_pins()
255 pin_cgf = pin_cgf | STM32_CNF_IN_PUPD; in pinctrl_configure_pins()
258 pin_cgf = pins[i].pincfg | STM32_MODE_OUTPUT | STM32_CNF_GP_OUTPUT; in pinctrl_configure_pins()
[all …]