Skip to content

Commit daec5a9

Browse files
ruanqiuqiuRbb666
authored andcommitted
fix-artpi-rtc
1 parent 6603903 commit daec5a9

File tree

1 file changed

+8
-0
lines changed
  • bsp/stm32/libraries/HAL_Drivers/drivers

1 file changed

+8
-0
lines changed

bsp/stm32/libraries/HAL_Drivers/drivers/drv_rtc.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,20 @@ static RTC_AlarmTypeDef Alarm_InitStruct = { 0 };
4646
static struct rtc_device_object rtc_device;
4747
static 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
4952
rt_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
5461
rt_weak void HAL_RTCEx_BKUPWrite(RTC_HandleTypeDef *hrtc, uint32_t BackupRegister, uint32_t Data)
62+
#endif
5563
{
5664
return;
5765
}

0 commit comments

Comments
 (0)