stm32-h103: use proper HSE for USB

HSI is out of spec for reliable USB operation, even though it sometimes
works.  stm32-h103 board has an 8Mhz external crystal which should
therefore be used for any USB work.

Originally reported as https://github.com/libopencm3/libopencm3-examples/pull/192
This commit is contained in:
Karl Palsson
2019-04-21 21:50:42 +00:00
parent f9713ff865
commit 90262eb880
3 changed files with 3 additions and 3 deletions

View File

@@ -258,7 +258,7 @@ int main(void)
}
}
rcc_clock_setup_in_hsi_out_48mhz();
rcc_clock_setup_in_hse_8mhz_out_72mhz();
rcc_periph_clock_enable(RCC_GPIOC);