Corrected the clock lookup table.

Due to copypasta we were using the hse table for hsi clocks.
This commit is contained in:
Piotr Esden-Tempski
2021-06-20 00:54:16 -07:00
parent 991bb45710
commit 3a8911627d
12 changed files with 12 additions and 12 deletions

View File

@@ -195,7 +195,7 @@ void usb_lp_can_rx0_isr(void)
int main(void)
{
rcc_clock_setup_pll(&rcc_hse_configs[RCC_CLOCK_HSI_64MHZ]);
rcc_clock_setup_pll(&rcc_hsi_configs[RCC_CLOCK_HSI_64MHZ]);
gpio_setup();
can_setup();
systick_setup();

View File

@@ -23,7 +23,7 @@
static void clock_setup(void)
{
/* Set STM32 to 64 MHz. */
rcc_clock_setup_pll(&rcc_hse_configs[RCC_CLOCK_HSI_64MHZ]);
rcc_clock_setup_pll(&rcc_hsi_configs[RCC_CLOCK_HSI_64MHZ]);
/* Enable alternate function peripheral clock. */
rcc_periph_clock_enable(RCC_AFIO);

View File

@@ -59,7 +59,7 @@ void sys_tick_handler(void)
int main(void)
{
rcc_clock_setup_pll(&rcc_hse_configs[RCC_CLOCK_HSI_64MHZ]);
rcc_clock_setup_pll(&rcc_hsi_configs[RCC_CLOCK_HSI_64MHZ]);
gpio_setup();
temp32 = 0;

View File

@@ -23,7 +23,7 @@
static void clock_setup(void)
{
rcc_clock_setup_pll(&rcc_hse_configs[RCC_CLOCK_HSI_64MHZ]);
rcc_clock_setup_pll(&rcc_hsi_configs[RCC_CLOCK_HSI_64MHZ]);
/* Enable clocks for GPIO port B (for GPIO_USART1_TX and LED) and USART1. */
rcc_periph_clock_enable(RCC_GPIOB);