Skip to content

Commit 2cfd98d

Browse files
committed
fix-artpi-rtc
1 parent bcb76f6 commit 2cfd98d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ static RTC_AlarmTypeDef Alarm_InitStruct = { 0 };
4646
static struct rtc_device_object rtc_device;
4747
static RTC_HandleTypeDef RTC_Handler;
4848

49-
rt_weak uint32_t HAL_RTCEx_BKUPRead(RTC_HandleTypeDef *hrtc, uint32_t BackupRegister)
49+
rt_weak uint32_t HAL_RTCEx_BKUPRead(const RTC_HandleTypeDef *hrtc, uint32_t BackupRegister)
5050
{
5151
return (~BKUP_REG_DATA);
5252
}
5353

54-
rt_weak void HAL_RTCEx_BKUPWrite(RTC_HandleTypeDef *hrtc, uint32_t BackupRegister, uint32_t Data)
54+
rt_weak void HAL_RTCEx_BKUPWrite(const RTC_HandleTypeDef *hrtc, uint32_t BackupRegister, uint32_t Data)
5555
{
5656
return;
5757
}

bsp/stm32/stm32h750-artpi/board/CubeMX_Config/Core/Inc/stm32h7xx_hal_conf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
/* #define HAL_XSPI_MODULE_ENABLED */
6969
/* #define HAL_RAMECC_MODULE_ENABLED */
7070
/* #define HAL_RNG_MODULE_ENABLED */
71-
/* #define HAL_RTC_MODULE_ENABLED */
71+
#define HAL_RTC_MODULE_ENABLED
7272
/* #define HAL_SAI_MODULE_ENABLED */
7373
#define HAL_SD_MODULE_ENABLED
7474
/* #define HAL_MMC_MODULE_ENABLED */

0 commit comments

Comments
 (0)