From 3fc6e81569fc955e5c505d61d413fc042bd31e92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Tue, 21 Jun 2022 20:25:06 +0200 Subject: [PATCH] Fix bug in clock setup. HSE was accidentally stopped instead of HSI. This didn't have any bad effects though --- firmware/setup/system_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/setup/system_init.c b/firmware/setup/system_init.c index 6b823c2..8919baa 100644 --- a/firmware/setup/system_init.c +++ b/firmware/setup/system_init.c @@ -93,7 +93,7 @@ void __setup_clocks(void) RCC->CFGR = tmp; /* Turn off HSI */ - RCC->CR &= ~RCC_CR_HSEON; + RCC->CR &= ~RCC_CR_HSION; } void __system_init(void)