18 lines
348 B
C
18 lines
348 B
C
#ifndef __LHL_RTC_H__
|
|
#define __LHL_RTC_H__
|
|
|
|
void StartRTC_SEC(void);
|
|
void StartRTC_AlarmAfterSeconds(uint32_t seconds);
|
|
|
|
|
|
|
|
typedef void (*rtc_irq_callback_t)(void);
|
|
|
|
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);
|
|
#endif
|