@@ -41,6 +41,7 @@ extern "C" {
4141#define HAL_ADC_MODULE_ENABLED
4242#define HAL_CEC_MODULE_ENABLED
4343#define HAL_COMP_MODULE_ENABLED
44+ #define HAL_CORDIC_MODULE_ENABLED
4445#define HAL_CORTEX_MODULE_ENABLED
4546#define HAL_CRC_MODULE_ENABLED
4647#define HAL_CRYP_MODULE_ENABLED
@@ -56,6 +57,7 @@ extern "C" {
5657#define HAL_FDCAN_MODULE_ENABLED
5758#define HAL_FLASH_MODULE_ENABLED
5859#define HAL_GFXMMU_MODULE_ENABLED
60+ #define HAL_FMAC_MODULE_ENABLED
5961#define HAL_GPIO_MODULE_ENABLED
6062#define HAL_HASH_MODULE_ENABLED
6163#define HAL_HCD_MODULE_ENABLED
@@ -106,19 +108,19 @@ extern "C" {
106108 * (when HSE is used as system clock source, directly or through the PLL).
107109 */
108110#if !defined (HSE_VALUE )
109- #define HSE_VALUE ((uint32_t)25000000 ) /*!< Value of the External oscillator in Hz */
111+ #define HSE_VALUE (25000000UL ) /*!< Value of the External oscillator in Hz */
110112#endif /* HSE_VALUE */
111113
112114#if !defined (HSE_STARTUP_TIMEOUT )
113- #define HSE_STARTUP_TIMEOUT ((uint32_t)5000 ) /*!< Time out for HSE start up, in ms */
115+ #define HSE_STARTUP_TIMEOUT (5000UL ) /*!< Time out for HSE start up, in ms */
114116#endif /* HSE_STARTUP_TIMEOUT */
115117
116118/**
117119 * @brief Internal oscillator (CSI) default value.
118120 * This value is the default CSI value after Reset.
119121 */
120122#if !defined (CSI_VALUE )
121- #define CSI_VALUE ((uint32_t)4000000 ) /*!< Value of the Internal oscillator in Hz*/
123+ #define CSI_VALUE (4000000UL ) /*!< Value of the Internal oscillator in Hz*/
122124#endif /* CSI_VALUE */
123125
124126/**
@@ -127,24 +129,24 @@ extern "C" {
127129 * (when HSI is used as system clock source, directly or through the PLL).
128130 */
129131#if !defined (HSI_VALUE )
130- #define HSI_VALUE ((uint32_t)64000000 ) /*!< Value of the Internal oscillator in Hz*/
132+ #define HSI_VALUE (64000000UL ) /*!< Value of the Internal oscillator in Hz*/
131133#endif /* HSI_VALUE */
132134
133135/**
134136 * @brief External Low Speed oscillator (LSE) value.
135137 * This value is used by the UART, RTC HAL module to compute the system frequency
136138 */
137139#if !defined (LSE_VALUE )
138- #define LSE_VALUE ((uint32_t)32768 ) /*!< Value of the External oscillator in Hz*/
140+ #define LSE_VALUE (32768UL ) /*!< Value of the External oscillator in Hz*/
139141#endif /* LSE_VALUE */
140142
141143
142144#if !defined (LSE_STARTUP_TIMEOUT )
143- #define LSE_STARTUP_TIMEOUT ((uint32_t)5000 ) /*!< Time out for LSE start up, in ms */
145+ #define LSE_STARTUP_TIMEOUT (5000UL ) /*!< Time out for LSE start up, in ms */
144146#endif /* LSE_STARTUP_TIMEOUT */
145147
146148#if !defined (LSI_VALUE )
147- #define LSI_VALUE ((uint32_t)32000 ) /*!< LSI Typical Value in Hz*/
149+ #define LSI_VALUE (32000UL ) /*!< LSI Typical Value in Hz*/
148150#endif /* LSI_VALUE */ /*!< Value of the Internal Low Speed oscillator in Hz
149151The real value may vary depending on the variations
150152in voltage and temperature.*/
@@ -166,10 +168,10 @@ in voltage and temperature.*/
166168 * @brief This is the HAL system configuration section
167169 */
168170#if !defined (VDD_VALUE )
169- #define VDD_VALUE ((uint32_t)3300 ) /*!< Value of VDD in mv */
171+ #define VDD_VALUE (3300UL ) /*!< Value of VDD in mv */
170172#endif
171173#if !defined (TICK_INT_PRIORITY )
172- #define TICK_INT_PRIORITY ((uint32_t)0x00 ) /*!< tick interrupt priority */
174+ #define TICK_INT_PRIORITY (0x00UL ) /*!< tick interrupt priority */
173175#endif
174176#if !defined (USE_RTOS )
175177#define USE_RTOS 0
@@ -184,6 +186,7 @@ in voltage and temperature.*/
184186#define USE_HAL_ADC_REGISTER_CALLBACKS 0U /* ADC register callback disabled */
185187#define USE_HAL_CEC_REGISTER_CALLBACKS 0U /* CEC register callback disabled */
186188#define USE_HAL_COMP_REGISTER_CALLBACKS 0U /* COMP register callback disabled */
189+ #define USE_HAL_CORDIC_REGISTER_CALLBACKS 0U /* CORDIC register callback disabled */
187190#define USE_HAL_CRYP_REGISTER_CALLBACKS 0U /* CRYP register callback disabled */
188191#define USE_HAL_DAC_REGISTER_CALLBACKS 0U /* DAC register callback disabled */
189192#define USE_HAL_DCMI_REGISTER_CALLBACKS 0U /* DCMI register callback disabled */
@@ -193,6 +196,7 @@ in voltage and temperature.*/
193196#define USE_HAL_DTS_REGISTER_CALLBACKS 0U /* DTS register callback disabled */
194197#define USE_HAL_ETH_REGISTER_CALLBACKS 0U /* ETH register callback disabled */
195198#define USE_HAL_FDCAN_REGISTER_CALLBACKS 0U /* FDCAN register callback disabled */
199+ #define USE_HAL_FMAC_REGISTER_CALLBACKS 0U /* FMAC register callback disabled */
196200#define USE_HAL_NAND_REGISTER_CALLBACKS 0U /* NAND register callback disabled */
197201#define USE_HAL_NOR_REGISTER_CALLBACKS 0U /* NOR register callback disabled */
198202#define USE_HAL_SDRAM_REGISTER_CALLBACKS 0U /* SDRAM register callback disabled */
@@ -232,12 +236,12 @@ in voltage and temperature.*/
232236#define ETH_TX_DESC_CNT 4 /* number of Ethernet Tx DMA descriptors */
233237#define ETH_RX_DESC_CNT 4 /* number of Ethernet Rx DMA descriptors */
234238
235- #define ETH_MAC_ADDR0 ((uint8_t)0x02 )
236- #define ETH_MAC_ADDR1 ((uint8_t)0x00 )
237- #define ETH_MAC_ADDR2 ((uint8_t)0x00 )
238- #define ETH_MAC_ADDR3 ((uint8_t)0x00 )
239- #define ETH_MAC_ADDR4 ((uint8_t)0x00 )
240- #define ETH_MAC_ADDR5 ((uint8_t)0x00 )
239+ #define ETH_MAC_ADDR0 (0x02UL )
240+ #define ETH_MAC_ADDR1 (0x00UL )
241+ #define ETH_MAC_ADDR2 (0x00UL )
242+ #define ETH_MAC_ADDR3 (0x00UL )
243+ #define ETH_MAC_ADDR4 (0x00UL )
244+ #define ETH_MAC_ADDR5 (0x00UL )
241245
242246/* ########################## Assert Selection ############################## */
243247/**
@@ -288,7 +292,7 @@ in voltage and temperature.*/
288292#endif /* HAL_DFSDM_MODULE_ENABLED */
289293
290294#ifdef HAL_DTS_MODULE_ENABLED
291- #include "stm32h7xx_hal_dts.h"
295+ #include "stm32h7xx_hal_dts.h"
292296#endif /* HAL_DTS_MODULE_ENABLED */
293297
294298#ifdef HAL_ETH_MODULE_ENABLED
@@ -319,6 +323,10 @@ in voltage and temperature.*/
319323#include "stm32h7xx_hal_comp.h"
320324#endif /* HAL_COMP_MODULE_ENABLED */
321325
326+ #ifdef HAL_CORDIC_MODULE_ENABLED
327+ #include "stm32h7xx_hal_cordic.h"
328+ #endif /* HAL_CORDIC_MODULE_ENABLED */
329+
322330#ifdef HAL_CRC_MODULE_ENABLED
323331#include "stm32h7xx_hal_crc.h"
324332#endif /* HAL_CRC_MODULE_ENABLED */
@@ -339,6 +347,10 @@ in voltage and temperature.*/
339347 #include "stm32h7xx_hal_gfxmmu.h"
340348#endif /* HAL_GFXMMU_MODULE_ENABLED */
341349
350+ #ifdef HAL_FMAC_MODULE_ENABLED
351+ #include "stm32h7xx_hal_fmac.h"
352+ #endif /* HAL_FMAC_MODULE_ENABLED */
353+
342354#ifdef HAL_HRTIM_MODULE_ENABLED
343355#include "stm32h7xx_hal_hrtim.h"
344356#endif /* HAL_HRTIM_MODULE_ENABLED */
@@ -396,15 +408,15 @@ in voltage and temperature.*/
396408#endif /* HAL_OPAMP_MODULE_ENABLED */
397409
398410#ifdef HAL_OSPI_MODULE_ENABLED
399- #include "stm32h7xx_hal_ospi.h"
411+ #include "stm32h7xx_hal_ospi.h"
400412#endif /* HAL_OSPI_MODULE_ENABLED */
401413
402414#ifdef HAL_OTFDEC_MODULE_ENABLED
403415#include "stm32h7xx_hal_otfdec.h"
404416#endif /* HAL_OTFDEC_MODULE_ENABLED */
405417
406418#ifdef HAL_PSSI_MODULE_ENABLED
407- #include "stm32h7xx_hal_pssi.h"
419+ #include "stm32h7xx_hal_pssi.h"
408420#endif /* HAL_PSSI_MODULE_ENABLED */
409421
410422#ifdef HAL_PWR_MODULE_ENABLED
0 commit comments