Home
last modified time | relevance | path

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

/Zephyr-latest/soc/st/stm32/common/
Dstm32_wkup_pins.c194 static void wkup_pin_setup(const struct wkup_pin_cfg_t *wakeup_pin_cfg) in wkup_pin_setup() argument
196 uint32_t wkup_pin_index = wakeup_pin_cfg->wkup_pin_id; in wkup_pin_setup()
200 if (wakeup_pin_cfg->polarity == STM32_PWR_WKUP_PIN_P_FALLING) { in wkup_pin_setup()
208 if (wakeup_pin_cfg->pupd_cfg == STM32_PWR_WKUP_PIN_NOPULL) { in wkup_pin_setup()
209 LL_PWR_DisableGPIOPullUp(wakeup_pin_cfg->ll_gpio_port, in wkup_pin_setup()
210 (1u << wakeup_pin_cfg->ll_gpio_pin)); in wkup_pin_setup()
211 LL_PWR_DisableGPIOPullDown(wakeup_pin_cfg->ll_gpio_port, in wkup_pin_setup()
212 (1u << wakeup_pin_cfg->ll_gpio_pin)); in wkup_pin_setup()
214 } else if ((wakeup_pin_cfg->pupd_cfg == STM32_PWR_WKUP_PIN_PULLUP) && in wkup_pin_setup()
215 wakeup_pin_cfg->ll_gpio_port) { in wkup_pin_setup()
[all …]