libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
PWR peripheral API

libopencm3 STM32L4xx Power Control More...

Collaboration diagram for PWR peripheral API:

Functions

void pwr_set_vos_scale (enum pwr_vos_scale scale)
 
void pwr_disable_backup_domain_write_protect (void)
 Disable Backup Domain Write Protection. More...
 
void pwr_enable_backup_domain_write_protect (void)
 Re-enable Backup Domain Write Protection. More...
 

Detailed Description

libopencm3 STM32L4xx Power Control

Version
1.0.0
Author
© 2016 Benjamin Levine benja.nosp@m.min@.nosp@m.jesco.nosp@m..kar.nosp@m.oo.co.nosp@m..uk
Date
4 March 2013

This library supports the power control system for the STM32L4 series of ARM Cortex Microcontrollers by ST Microelectronics.

LGPL License Terms libopencm3 License

Function Documentation

◆ pwr_disable_backup_domain_write_protect()

void pwr_disable_backup_domain_write_protect ( void  )

Disable Backup Domain Write Protection.

This allows backup domain registers to be changed. These registers are write protected after a reset.

Definition at line 61 of file pwr.c.

References PWR_CR1, and PWR_CR1_DBP.

◆ pwr_enable_backup_domain_write_protect()

void pwr_enable_backup_domain_write_protect ( void  )

Re-enable Backup Domain Write Protection.

This protects backup domain registers from inadvertent change.

Definition at line 70 of file pwr.c.

References PWR_CR1.

◆ pwr_set_vos_scale()

void pwr_set_vos_scale ( enum pwr_vos_scale  scale)

Definition at line 39 of file pwr.c.

References PWR_CR1, PWR_CR1_VOS_MASK, PWR_CR1_VOS_RANGE_1, PWR_CR1_VOS_RANGE_2, PWR_CR1_VOS_SHIFT, PWR_SCALE1, and PWR_SCALE2.

Referenced by rcc_clock_setup_pll().

Here is the caller graph for this function: