Corrected the clock lookup table.
Due to copypasta we were using the hse table for hsi clocks.
This commit is contained in:
@@ -245,7 +245,7 @@ int main(void)
|
||||
{
|
||||
usbd_device *usbd_dev;
|
||||
|
||||
rcc_clock_setup_pll(&rcc_hse_configs[RCC_CLOCK_HSI_48MHZ]);
|
||||
rcc_clock_setup_pll(&rcc_hsi_configs[RCC_CLOCK_HSI_48MHZ]);
|
||||
rcc_periph_clock_enable(RCC_AFIO);
|
||||
|
||||
AFIO_MAPR |= AFIO_MAPR_SWJ_CFG_JTAG_OFF_SW_ON;
|
||||
|
||||
Reference in New Issue
Block a user