38#define RTC_ICR_DAE_ENABLE (1UL)
39#define RTC_ICR_DAE_DISABLE (0UL)
41#define RTC_ICR_HOE_ENABLE (1UL)
42#define RTC_ICR_HOE_DISABLE (0UL)
44#define RTC_ICR_MIE_ENABLE (1UL)
45#define RTC_ICR_MIE_DISABLE (0UL)
47#define RTC_ICR_SEE_ENABLE (1UL)
48#define RTC_ICR_SEE_DISABLE (0UL)
50#define RTC_ICR_T2E_ENABLE (1UL)
51#define RTC_ICR_T2E_DISABLE (0UL)
53#define RTC_ICR_T1E_ENABLE (1UL)
54#define RTC_ICR_T1E_DISABLE (0UL)
56#define RTC_ICR_T3E_ENABLE (1UL)
57#define RTC_ICR_T3E_DISABLE (0UL)
59#define RTC_ICR_MASK_ALL_ENABLE (1UL)
60#define RTC_ICR_MASK_ALL_DISABLE (0UL)
62#define RTC_ICR_CNTE_ENABLE (1UL)
63#define RTC_ICR_CNTE_DISABLE (0UL)
65#define RTC_AO_TIMER_CTL_AO_TIMER_CLR_SET (1UL)
66#define RTC_AO_TIMER_CTL_AO_TIMER_CLR_RESET (0UL)
68#define RTC_AO_TIMER_CTL_AO_TIMER_EN_ENABLE (1UL)
69#define RTC_AO_TIMER_CTL_AO_TIMER_EN_DISABLE (0UL)
72#define RTC_ICR_T1E_Msk (0x1UL << 5UL)
73#define RTC_ICR_T2E_Msk (0x1UL << 4UL)
74#define RTC_ICR_T3E_Msk (0x1UL << 6UL)
75#define RTC_ICR_DaE_Msk (0x1UL << 0UL)
76#define RTC_ICR_HoE_Msk (0x1UL << 1UL)
77#define RTC_ICR_MiE_Msk (0x1UL << 2UL)
78#define RTC_ICR_SeE_Msk (0x1UL << 3UL)
80#define RTC_AO_ALL_INTR_AO_TIMER_INTR_Msk (0x1UL << 5UL)
160 Date->
Sec = rtc_ccvr__rtc_ccvr_sec__getf();
161 Date->
Min = rtc_ccvr__rtc_ccvr_min__getf();
162 Date->
Hour = rtc_ccvr__rtc_ccvr_hour__getf();
163 Date->
Day = rtc_ccvr__rtc_ccvr_day__getf();
164 Date->
Week = rtc_wvr__getf();
176 rtc_clr__rtc_clr_day__setf(rtc_cfg->
Date.
Day);
177 rtc_clr__rtc_clr_hour__setf(rtc_cfg->
Date.
Hour);
178 rtc_clr__rtc_clr_min__setf(rtc_cfg->
Date.
Min);
179 rtc_clr__rtc_clr_sec__setf(rtc_cfg->
Date.
Sec);
187 rtc_icr__rtc_t1e__setf(1);
190 rtc_icr__rtc_t1e__setf(0);
194 rtc_icr__rtc_t2e__setf(1);
196 rtc_icr__rtc_t2e__setf(0);
200 rtc_icr__rtc_t3e__setf(1);
202 rtc_icr__rtc_t3e__setf(1);
210 rtc_icr__rtc__se_e__setf(1);
212 rtc_icr__rtc__se_e__setf(0);
219 rtc_icr__rtc__mi_e__setf(1);
221 rtc_icr__rtc__mi_e__setf(0);
228 rtc_icr__rtc__ho_e__setf(1);
230 rtc_icr__rtc__ho_e__setf(0);
237 rtc_icr__rtc__da_e__setf(1);
239 rtc_icr__rtc__da_e__setf(0);
Rtc_MatchTimeTypeDef_t MatchTime
Rtc_DateLimitTypeDef_t DateLimit
uint8_t(* T3_CMR_Callback)(void)
uint8_t(* T2_CMR_Callback)(void)
uint8_t(* Hour_Callback)(void)
uint8_t(* AO_Timer_Callback)(uint8_t calib_flag)
uint8_t(* Sec_Callback)(void)
uint8_t(* Min_Callback)(void)
uint8_t(* T1_CMR_Callback)(void)
uint8_t(* Day_Callback)(void)
static __inline void __rtc_dateget(Rtc_DateTypeDef_t *Date)
static __inline void rtc_config_minit(RTC_InitCfg_t *rtc_cfg)
uint8_t T2_CMR_Callback(void)
static __inline void rtc_dateSet(RTC_InitCfg_t *rtc_cfg)
struct RTC_Intr_Cb_s RTC_Intr_Cb_t
uint8_t Sec_Callback(void)
uint8_t Day_Callback(void)
RTC_MatchTimeCh_TypeDef_t
static __inline void rtc_config_secit(RTC_InitCfg_t *rtc_cfg)
void xc_rtc_date_get(Rtc_DateTypeDef_t *Date)
static __inline void rtc_config_dayit(RTC_InitCfg_t *rtc_cfg)
uint8_t T1_CMR_Callback(void)
static __inline void rtc_config_matchtimeit(RTC_InitCfg_t *rtc_cfg)
void rtc_intr_callback(uint64_t intr_sta)
static __inline void rtc_config_hourit(RTC_InitCfg_t *rtc_cfg)
uint8_t Min_Callback(void)
uint8_t T3_CMR_Callback(void)
uint8_t AO_Timer_Callback(uint8_t calib_flag)
uint8_t Hour_Callback(void)
static __inline void rtc_datelimitSet(RTC_InitCfg_t *rtc_cfg)
void xc_rtc_init(RTC_InitCfg_t *rtc_cfg)