We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e24734 commit e4496e2Copy full SHA for e4496e2
src/platforms/native/platform.c
@@ -148,10 +148,10 @@ void platform_init(void)
148
rcc_periph_clock_enable(RCC_USB);
149
rcc_periph_clock_enable(RCC_GPIOA);
150
rcc_periph_clock_enable(RCC_GPIOB);
151
- if (platform_hwversion() >= 6) {
+ if (platform_hwversion() >= 6)
152
rcc_periph_clock_enable(RCC_GPIOC);
153
+ if (platform_hwversion() >= 1)
154
rcc_periph_clock_enable(RCC_TIM1);
- }
155
rcc_periph_clock_enable(RCC_AFIO);
156
rcc_periph_clock_enable(RCC_CRC);
157
0 commit comments