mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-05-15 19:19:06 +08:00
fix-artpi-rtc
This commit is contained in:
@@ -46,12 +46,20 @@ static RTC_AlarmTypeDef Alarm_InitStruct = { 0 };
|
||||
static struct rtc_device_object rtc_device;
|
||||
static RTC_HandleTypeDef RTC_Handler;
|
||||
|
||||
#ifdef SOC_SERIES_STM32H7
|
||||
rt_weak uint32_t HAL_RTCEx_BKUPRead(const RTC_HandleTypeDef *hrtc, uint32_t BackupRegister)
|
||||
#else
|
||||
rt_weak uint32_t HAL_RTCEx_BKUPRead(RTC_HandleTypeDef *hrtc, uint32_t BackupRegister)
|
||||
#endif
|
||||
{
|
||||
return (~BKUP_REG_DATA);
|
||||
}
|
||||
|
||||
#ifdef SOC_SERIES_STM32H7
|
||||
rt_weak void HAL_RTCEx_BKUPWrite(const RTC_HandleTypeDef *hrtc, uint32_t BackupRegister, uint32_t Data)
|
||||
#else
|
||||
rt_weak void HAL_RTCEx_BKUPWrite(RTC_HandleTypeDef *hrtc, uint32_t BackupRegister, uint32_t Data)
|
||||
#endif
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user