提交 dce37d0b 编写于 作者: L LinJieqiang

bsp: fix stm32 rtc hal library error.

上级 03f8762e
......@@ -110,6 +110,9 @@ static rt_err_t rt_rtc_config(struct rt_device *dev)
#endif
HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct);
/* Enable RTC Clock */
__HAL_RCC_RTC_ENABLE();
RTC_Handler.Instance = RTC;
if (HAL_RTCEx_BKUPRead(&RTC_Handler, RTC_BKP_DR1) != BKUP_REG_DATA)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册