Zephyr API Documentation 4.0.0-rc3
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
stm32_wkup_pins.h File Reference

Public APIs for STM32 PWR wake-up pins configuration. More...

Go to the source code of this file.

Functions

int stm32_pwr_wkup_pin_cfg_gpio (const struct gpio_dt_spec *gpio)
 Configure a GPIO pin as a source for STM32 PWR wake-up pins.
 
void stm32_pwr_wkup_pin_cfg_pupd (void)
 Enable or Disable pull-up and pull-down configuration for GPIO Ports that are associated with STM32 PWR wake-up pins.
 

Detailed Description

Public APIs for STM32 PWR wake-up pins configuration.

Function Documentation

◆ stm32_pwr_wkup_pin_cfg_gpio()

int stm32_pwr_wkup_pin_cfg_gpio ( const struct gpio_dt_spec * gpio)

Configure a GPIO pin as a source for STM32 PWR wake-up pins.

Parameters
gpioContainer for GPIO pin information specified in devicetree
Returns
0 on success, -EINVAL on invalid values

◆ stm32_pwr_wkup_pin_cfg_pupd()

void stm32_pwr_wkup_pin_cfg_pupd ( void )

Enable or Disable pull-up and pull-down configuration for GPIO Ports that are associated with STM32 PWR wake-up pins.