bsps/stm32u5: Fix warning in RTC

The function stm32u5_rtc_get_time is only used locally and therefore
should be static.

Update #5289
This commit is contained in:
Christian Mauderer
2025-07-07 10:38:59 +02:00
committed by Amar Takhar
parent 1134358f49
commit 3ac0e3c77e

View File

@@ -45,7 +45,7 @@ RTC_HandleTypeDef hrtc = { 0 };
RTC_TimeTypeDef sTime = { 0 };
RTC_DateTypeDef sDate = { 0 };
void stm32u5_rtc_get_time( rtems_time_of_day *tod )
static void stm32u5_rtc_get_time( rtems_time_of_day *tod )
{
if ( HAL_RTC_GetTime( &hrtc, &sTime, RTC_FORMAT_BIN ) != HAL_OK ) {
bsp_fatal( STM32U5_FATAL_RTC );