From 38d07691a0521a22ade549a26a61c93dee5bf6c2 Mon Sep 17 00:00:00 2001 From: dragonmux Date: Sun, 10 Sep 2023 22:56:53 +0100 Subject: [PATCH] native/platform: Fixed some missing initialisation for older hardware --- src/platforms/native/platform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platforms/native/platform.c b/src/platforms/native/platform.c index 2dc959b0440..d35c1357fc2 100644 --- a/src/platforms/native/platform.c +++ b/src/platforms/native/platform.c @@ -152,10 +152,10 @@ void platform_init(void) rcc_periph_clock_enable(RCC_USB); rcc_periph_clock_enable(RCC_GPIOA); rcc_periph_clock_enable(RCC_GPIOB); - if (hwversion >= 6) { + if (hwversion >= 6) rcc_periph_clock_enable(RCC_GPIOC); + if (hwversion >= 1) rcc_periph_clock_enable(RCC_TIM1); - } rcc_periph_clock_enable(RCC_AFIO); rcc_periph_clock_enable(RCC_CRC);