diff --git a/os/hal/platforms/STM32F1xx/hal_lld_f105_f107.h b/os/hal/platforms/STM32F1xx/hal_lld_f105_f107.h index 747a213b8..9f8a6bc92 100644 --- a/os/hal/platforms/STM32F1xx/hal_lld_f105_f107.h +++ b/os/hal/platforms/STM32F1xx/hal_lld_f105_f107.h @@ -51,7 +51,7 @@ * @name Platform identification * @{ */ -#define PLATFORM_NAME "STM32F1 Connectivity Line" +#define PLATFORM_NAME "STM32F10x Connectivity Line" /** @} */ /** @@ -697,8 +697,7 @@ #endif /* PLL2 activation conditions.*/ -#if STM32_OTG_CLOCK_REQUIRED || \ - (STM32_PREDIV1SRC == STM32_PREDIV1SRC_PLL2) || \ +#if ((STM32_PREDIV1SRC == STM32_PREDIV1SRC_PLL2) && STM32_ACTIVATE_PLL1) || \ (STM32_MCOSEL == STM32_MCOSEL_PLL2DIV2) || \ defined(__DOXYGEN__) /** @@ -886,7 +885,7 @@ #elif (STM32_SW == STM32_SW_HSE) #define STM32_SYSCLK STM32_HSECLK #else -#error "invalid STM32_SYSCLK_SW value specified" +#error "invalid STM32_SW value specified" #endif /* Check on the system clock.*/