Files
CHJ/user/MCU/lhl_rtc.h

18 lines
348 B
C
Raw Permalink Normal View History

2026-03-20 21:16:58 +08:00
#ifndef __LHL_RTC_H__
#define __LHL_RTC_H__
2026-03-20 21:19:53 +08:00
void StartRTC_SEC(void);
void StartRTC_AlarmAfterSeconds(uint32_t seconds);
2026-03-20 21:16:58 +08:00
2026-03-20 21:19:53 +08:00
typedef void (*rtc_irq_callback_t)(void);
2026-03-20 21:16:58 +08:00
2026-03-20 21:19:53 +08:00
typedef enum {
RTC_SEC,
RTC_ALR,
}RTC_IRQ_SOURCE_t;
void rtc_register_irq_callback(RTC_IRQ_SOURCE_t rtc_irq_source ,rtc_irq_callback_t rtc_irq_callback);
2026-03-20 21:16:58 +08:00
#endif