Updated all rcc_clock_setups to use the new lookup tables.
The old "one function per config" system is depricated for quite a while now...
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
/* Set STM32 to 72 MHz. */
|
||||
static void clock_setup(void)
|
||||
{
|
||||
rcc_clock_setup_in_hse_25mhz_out_72mhz();
|
||||
rcc_clock_setup_pll(&rcc_hse_configs[RCC_CLOCK_HSE25_72MHZ]);
|
||||
|
||||
/* Enable GPIOC clock. */
|
||||
rcc_periph_clock_enable(RCC_GPIOC);
|
||||
|
||||
@@ -80,7 +80,7 @@ int main(void)
|
||||
static void init_system(void)
|
||||
{
|
||||
/* setup SYSCLK to work with 64Mhz HSI */
|
||||
rcc_clock_setup_in_hsi_out_64mhz();
|
||||
rcc_clock_setup_pll(&rcc_hse_configs[RCC_CLOCK_HSI_64MHZ]);
|
||||
init_usart();
|
||||
}
|
||||
|
||||
|
||||
@@ -110,7 +110,7 @@ int main(void)
|
||||
{
|
||||
usbd_device *usbd_dev;
|
||||
|
||||
rcc_clock_setup_in_hse_25mhz_out_72mhz();
|
||||
rcc_clock_setup_pll(&rcc_hse_configs[RCC_CLOCK_HSE25_72MHZ]);
|
||||
|
||||
rcc_periph_clock_enable(RCC_GPIOA);
|
||||
rcc_periph_clock_enable(RCC_GPIOC);
|
||||
|
||||
Reference in New Issue
Block a user