Skip to content

Commit 468e5ad

Browse files
youssefz24erwango
authored andcommitted
stm32mp2xx.h: fix the USE_HAL_DRIVER include
Modify the included HAL header in stm32mp2xx.h to the correct one. "stm32mp2xx_hal_conf.h" -> "stm32mp2xx_hal.h" "stm32mp2xx_hal.h" was never included in build time and caused declaration errors when using the HAL driver. Signed-off-by: Youssef Zini <[email protected]>
1 parent 54f5a6e commit 468e5ad

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

stm32cube/stm32mp2xx/README

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,10 @@ Patch List:
5353
assertion checks are not implemented, as the code still functions
5454
correctly without them.
5555

56+
* Fix the USE_HAL_DRIVER included header
57+
- The stm32cube/stm32mp2xx/soc/stm32mp2xx.h file
58+
was modified to include the correct header for the HAL driver.
59+
"stm32mp2xx_hal_conf.h" -> "stm32mp2xx_hal.h"
60+
This change ensures that the HAL driver is properly included in the build.
61+
5662
See release_note.html from STM32Cube

stm32cube/stm32mp2xx/soc/stm32mp2xx.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ typedef enum
384384
*/
385385

386386
#if defined (USE_HAL_DRIVER)
387-
#include "stm32mp2xx_hal_conf.h"
387+
#include "stm32mp2xx_hal.h"
388388
#endif /* USE_HAL_DRIVER */
389389

390390
#ifdef __cplusplus

0 commit comments

Comments
 (0)