Skip to content

Commit

Permalink
hw/mcu/stm32g4: Include hal config
Browse files Browse the repository at this point in the history
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
  • Loading branch information
kasjer committed Apr 14, 2024
1 parent cc006e6 commit 16b0117
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/mcu/stm/stm32g4xx/src/system_stm32g4xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 16b0117

Please sign in to comment.