Skip to content

Commit

Permalink
native/platform: Fixed some missing initialisation for older hardware
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonmux committed Sep 11, 2023
1 parent 3e24734 commit e4496e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platforms/native/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,10 @@ void platform_init(void)
rcc_periph_clock_enable(RCC_USB);
rcc_periph_clock_enable(RCC_GPIOA);
rcc_periph_clock_enable(RCC_GPIOB);
if (platform_hwversion() >= 6) {
if (platform_hwversion() >= 6)
rcc_periph_clock_enable(RCC_GPIOC);
if (platform_hwversion() >= 1)
rcc_periph_clock_enable(RCC_TIM1);
}
rcc_periph_clock_enable(RCC_AFIO);
rcc_periph_clock_enable(RCC_CRC);

Expand Down

0 comments on commit e4496e2

Please sign in to comment.