From 16b0117e9f6c654ab8ce347a156f4e909c9799e7 Mon Sep 17 00:00:00 2001 From: Jerzy Kasenberg Date: Sun, 14 Apr 2024 17:13:11 +0200 Subject: [PATCH] hw/mcu/stm32g4: Include hal config system_stm32g4xx.c was including mcu/cmsis_nvic.h while it should include stm32g4xx_hal_conf.h This is required if external oscillator frequency (defined in stm32g4xx_hal_conf.h) is not 24MHz --- hw/mcu/stm/stm32g4xx/src/system_stm32g4xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/mcu/stm/stm32g4xx/src/system_stm32g4xx.c b/hw/mcu/stm/stm32g4xx/src/system_stm32g4xx.c index 83ba035677..104fe74c0c 100644 --- a/hw/mcu/stm/stm32g4xx/src/system_stm32g4xx.c +++ b/hw/mcu/stm/stm32g4xx/src/system_stm32g4xx.c @@ -76,7 +76,7 @@ */ #include "stm32g4xx.h" -#include +#include #if !defined (HSE_VALUE) #define HSE_VALUE 24000000U /*!< Value of the External oscillator in Hz */