mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-11-09 20:45:41 +08:00
[stm32][pm]lptimer is supported
This commit is contained in:
1 parent
fccd98747e
commit
568356cc48
2 files changed
+123
-94
No files matched your search
File diff suppressed because it is too large.
Load diff
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2006-2023, RT-Thread Development Team
|
||||
* Copyright (c) 2006-2024 RT-Thread Development Team
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
@@ -22,7 +22,7 @@
|
||||
#define RTC_BKP_DR1 RT_NULL
|
||||
#endif
|
||||
|
||||
//#define DRV_DEBUG
|
||||
/* #define DRV_DEBUG*/
|
||||
#define LOG_TAG "drv.rtc"
|
||||
#include <drv_log.h>
|
||||
|
||||
@@ -393,7 +393,7 @@ static rt_err_t rtc_alarm_time_set(struct rtc_device_object* p_dev)
|
||||
|
||||
void HAL_RTC_AlarmAEventCallback(RTC_HandleTypeDef *hrtc)
|
||||
{
|
||||
//LOG_D("rtc alarm isr.\n");
|
||||
/*LOG_D("rtc alarm isr.\n");*/
|
||||
rt_alarm_update(&rtc_device.rtc_dev.parent, 1);
|
||||
}
|
||||
|
||||
@@ -424,5 +424,5 @@ static int rt_hw_rtc_init(void)
|
||||
|
||||
return RT_EOK;
|
||||
}
|
||||
INIT_DEVICE_EXPORT(rt_hw_rtc_init);
|
||||
INIT_BOARD_EXPORT(rt_hw_rtc_init);
|
||||
#endif /* BSP_USING_ONCHIP_RTC */
|
||||
Reference in new issue
Block a user