stm32f7: pwr: added basic support for pwr (VOS and overdrive)

This commit is contained in:
Matthew Lai
2017-04-01 02:38:52 +01:00
committed by Karl Palsson
parent 2c0e71b3c7
commit 17553da946
6 changed files with 366 additions and 10 deletions

View File

@@ -36,6 +36,8 @@
#ifndef LIBOPENCM3_RCC_H
#define LIBOPENCM3_RCC_H
#include <libopencm3/stm32/f7/pwr.h>
/* --- RCC registers ------------------------------------------------------- */
#define RCC_CR MMIO32(RCC_BASE + 0x00)
@@ -617,7 +619,8 @@ struct rcc_clock_scale {
uint8_t hpre;
uint8_t ppre1;
uint8_t ppre2;
uint8_t power_save;
enum pwr_vos_scale vos_scale;
uint8_t overdrive;
uint32_t apb1_frequency;
uint32_t apb2_frequency;
};