OLIMEX STM32-H107 has a 25MHz crystal

This commit is contained in:
hk
2013-06-10 20:47:25 +02:00
committed by Piotr Esden-Tempski
parent d74a44e589
commit 614d921a3b
2 changed files with 2 additions and 2 deletions

View File

@@ -24,7 +24,7 @@
/* Set STM32 to 72 MHz. */ /* Set STM32 to 72 MHz. */
static void clock_setup(void) static void clock_setup(void)
{ {
rcc_clock_setup_in_hse_8mhz_out_72mhz(); rcc_clock_setup_in_hse_25mhz_out_72mhz();
/* Enable GPIOC clock. */ /* Enable GPIOC clock. */
rcc_peripheral_enable_clock(&RCC_APB2ENR, RCC_APB2ENR_IOPCEN); rcc_peripheral_enable_clock(&RCC_APB2ENR, RCC_APB2ENR_IOPCEN);

View File

@@ -100,7 +100,7 @@ int main(void)
{ {
usbd_device *usbd_dev; usbd_device *usbd_dev;
rcc_clock_setup_in_hse_8mhz_out_72mhz(); rcc_clock_setup_in_hse_25mhz_out_72mhz();
rcc_peripheral_enable_clock(&RCC_APB2ENR, RCC_APB2ENR_IOPAEN); rcc_peripheral_enable_clock(&RCC_APB2ENR, RCC_APB2ENR_IOPAEN);
rcc_peripheral_enable_clock(&RCC_APB2ENR, RCC_APB2ENR_IOPCEN); rcc_peripheral_enable_clock(&RCC_APB2ENR, RCC_APB2ENR_IOPCEN);