bsps/stm32u5: Fix warning in bspstarthooks.c

This fixes a warning about comparing different pointer types.

Updates #5289
This commit is contained in:
Christian Mauderer
2025-07-07 10:17:48 +02:00
committed by Amar Takhar
parent 689e1c6de9
commit 1134358f49

View File

@@ -147,8 +147,8 @@ void BSP_START_TEXT_SECTION bsp_start_hook_0( void )
* It's not really relevant, which symbol is checked. So pick * It's not really relevant, which symbol is checked. So pick
* stm32u5_init_octospi at random. * stm32u5_init_octospi at random.
*/ */
if ( stm32u5_init_octospi < stm32u5_memory_octospi_1_begin || if ( (void*) stm32u5_init_octospi < (void*) stm32u5_memory_octospi_1_begin ||
stm32u5_init_octospi > stm32u5_memory_octospi_1_end ) { (void*) stm32u5_init_octospi > (void*) stm32u5_memory_octospi_1_end ) {
SystemInit(); SystemInit();
SystemCoreClockUpdate(); SystemCoreClockUpdate();
stm32u5_rcc_power_clock_enable(); stm32u5_rcc_power_clock_enable();
@@ -166,8 +166,8 @@ void BSP_START_TEXT_SECTION bsp_start_hook_1( void )
* Init OctoSPI only if we are not running from it. See start hook 0 for * Init OctoSPI only if we are not running from it. See start hook 0 for
* details. * details.
*/ */
if ( stm32u5_init_octospi < stm32u5_memory_octospi_1_begin || if ( (void*) stm32u5_init_octospi < (void*) stm32u5_memory_octospi_1_begin ||
stm32u5_init_octospi > stm32u5_memory_octospi_1_end ) { (void*) stm32u5_init_octospi > (void*) stm32u5_memory_octospi_1_end ) {
stm32u5_init_octospi(); stm32u5_init_octospi();
} }
bsp_start_copy_sections(); bsp_start_copy_sections();