This is an automated email from the ASF dual-hosted git repository.

jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git


The following commit(s) were added to refs/heads/master by this push:
     new dd95f7dd9 hw/mcu/stm32g4: Include hal config
dd95f7dd9 is described below

commit dd95f7dd9c39024dde6a8c21ae084f4623a4abd9
Author: Jerzy Kasenberg <jerzy.kasenb...@codecoup.pl>
AuthorDate: Sun Apr 14 17:13:11 2024 +0200

    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 83ba03567..104fe74c0 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 <mcu/cmsis_nvic.h>
+#include <stm32g4xx_hal_conf.h>
 
 #if !defined  (HSE_VALUE)
   #define HSE_VALUE     24000000U /*!< Value of the External oscillator in Hz 
*/

Reply via email to