|
|
@ -1,8 +1,19 @@ |
|
|
|
/** @defgroup rcc_file RCC Peripheral API
|
|
|
|
* |
|
|
|
* @ingroup peripheral_apis |
|
|
|
* This library supports the Reset and Clock Control System in the STM32 series |
|
|
|
* of ARM Cortex Microcontrollers by ST Microelectronics. |
|
|
|
* |
|
|
|
* LGPL License Terms @ref lgpl_license |
|
|
|
*/ |
|
|
|
|
|
|
|
#include <libopencm3/cm3/assert.h> |
|
|
|
#include <libopencm3/stm32/rcc.h> |
|
|
|
#include <libopencm3/stm32/pwr.h> |
|
|
|
#include <libopencm3/stm32/flash.h> |
|
|
|
|
|
|
|
/**@{*/ |
|
|
|
|
|
|
|
uint32_t rcc_ahb_frequency = 16000000; |
|
|
|
uint32_t rcc_apb1_frequency = 16000000; |
|
|
|
uint32_t rcc_apb2_frequency = 16000000; |
|
|
@ -472,3 +483,5 @@ void rcc_clock_setup_hsi(const struct rcc_clock_scale *clock) |
|
|
|
rcc_apb1_frequency = clock->apb1_frequency; |
|
|
|
rcc_apb2_frequency = clock->apb2_frequency; |
|
|
|
} |
|
|
|
|
|
|
|
/**@}*/ |