File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
bsp/stm32/libraries/HAL_Drivers/drivers Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -46,12 +46,20 @@ static RTC_AlarmTypeDef Alarm_InitStruct = { 0 };
4646static struct rtc_device_object rtc_device ;
4747static RTC_HandleTypeDef RTC_Handler ;
4848
49+ #ifdef SOC_SERIES_STM32H7
50+ rt_weak uint32_t HAL_RTCEx_BKUPRead (const RTC_HandleTypeDef * hrtc , uint32_t BackupRegister )
51+ #else
4952rt_weak uint32_t HAL_RTCEx_BKUPRead (RTC_HandleTypeDef * hrtc , uint32_t BackupRegister )
53+ #endif
5054{
5155 return (~BKUP_REG_DATA );
5256}
5357
58+ #ifdef SOC_SERIES_STM32H7
59+ rt_weak void HAL_RTCEx_BKUPWrite (const RTC_HandleTypeDef * hrtc , uint32_t BackupRegister , uint32_t Data )
60+ #else
5461rt_weak void HAL_RTCEx_BKUPWrite (RTC_HandleTypeDef * hrtc , uint32_t BackupRegister , uint32_t Data )
62+ #endif
5563{
5664 return ;
5765}
You can’t perform that action at this time.
0 commit comments