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 10, 2023
1 parent b83657e commit 38d0769
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 @@ -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);

Expand Down

0 comments on commit 38d0769

Please sign in to comment.