Skip to content

Commit c8654e5

Browse files
committed
[G4] Add STM32G4xx HAL configuration files
Signed-off-by: Frederic.Pillon <[email protected]>
1 parent b8d3212 commit c8654e5

File tree

3 files changed

+413
-0
lines changed

3 files changed

+413
-0
lines changed

cores/arduino/stm32/stm32yyxx_hal_conf.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ HAL_CAN_LEGACY_MODULE_ENABLED
9898
HAL_CAN_LEGACY_MODULE_ENABLED
9999
HAL_CEC_MODULE_ENABLED
100100
HAL_COMP_MODULE_ENABLED
101+
HAL_CORDIC_MODULE_ENABLED
101102
HAL_CRC_MODULE_ENABLED
102103
HAL_CRYP_MODULE_ENABLED
103104
HAL_DCMI_MODULE_ENABLED
@@ -107,6 +108,7 @@ HAL_DSI_MODULE_ENABLED
107108
HAL_EXTI_MODULE_ENABLED // interrupt API does not use the module
108109
HAL_FDCAN_MODULE_ENABLED
109110
HAL_FIREWALL_MODULE_ENABLED
111+
HAL_FMAC_MODULE_ENABLED
110112
HAL_FMPI2C_MODULE_ENABLED
111113
HAL_GFXMMU_MODULE_ENABLED
112114
HAL_HASH_MODULE_ENABLED

system/STM32G4xx/stm32g4xx_hal_conf.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#ifndef __STM32G4xx_HAL_CONF_H
2+
#define __STM32G4xx_HAL_CONF_H
3+
4+
#include "variant.h"
5+
6+
/* STM32G4xx specific HAL configuration options. */
7+
#if __has_include("hal_conf_custom.h")
8+
#include "hal_conf_custom.h"
9+
#else
10+
#if __has_include("hal_conf_extra.h")
11+
#include "hal_conf_extra.h"
12+
#endif
13+
#include "stm32g4xx_hal_conf_default.h"
14+
#endif
15+
16+
#endif /* __STM32G4xx_HAL_CONF_H */

0 commit comments

Comments
 (0)