52 if ((base->
LR & 0xFFu) != 0xFFu)
98 bool isCounterEnabled;
104 if (isCounterEnabled)
189 uint32_t tmp = base->
TPR;
227 switch (registerToConfig)
status_t RTC_HAL_ConfigureClockOut(RTC_Type *const base, rtc_clk_out_config_t config)
This function configures the Clock Out pin source.
static void RTC_HAL_LockRegisterLock(RTC_Type *const base)
Lock the Lock Register.
status_t RTC_HAL_Disable(RTC_Type *const base)
Disable RTC instance counter.
rtc_clk_out_config_t
RTC CLKOUT pin configuration Implements : rtc_clk_out_config_t_Class.
static bool RTC_HAL_GetLockRegisterLock(const RTC_Type *const base)
Get the Lock Register Lock state.
static void RTC_HAL_ControlRegisterLock(RTC_Type *const base)
Lock the Control Register.
static bool RTC_HAL_GetTimeInvalidFlag(const RTC_Type *const base)
Get Time Invalid flag.
static void RTC_HAL_StatusRegisterLock(RTC_Type *const base)
Lock the Status Register.
static void RTC_HAL_SetTimeCounterEnable(RTC_Type *const base, bool enable)
Enable or disable the Time counter.
status_t RTC_HAL_ConfigureRegisterLock(RTC_Type *const base, rtc_lock_register_select_t registerToConfig)
This function configures register lock status.
status_t RTC_HAL_Enable(RTC_Type *const base)
Enable RTC instance counter.
status_t
Status return codes. Common error codes will be a unified enumeration (C enum) that will contain all ...
bool RTC_HAL_IsRegisterLocked(const RTC_Type *const base, rtc_lock_register_select_t reg)
This function gets register lock status.
static bool RTC_HAL_GetControlRegisterLock(const RTC_Type *const base)
Get the Control Register Lock state.
status_t RTC_HAL_SetTimeSecondsRegister(RTC_Type *const base, uint32_t seconds)
Set Time Seconds Register.
static bool RTC_HAL_GetTimeCounterEnable(const RTC_Type *const base)
Get the Time Counter Enable value.
static bool RTC_HAL_GetTimeCompensationLock(const RTC_Type *const base)
Get the TimeCompensation Register Lock state.
status_t RTC_HAL_Init(RTC_Type *const base)
Initialize RTC instance.
static bool RTC_HAL_GetStatusRegisterLock(const RTC_Type *const base)
Get the Status Register Lock state.
static void RTC_HAL_TimeCompensationLock(RTC_Type *const base)
Lock the TimeCompensation Register.
rtc_lock_register_select_t
RTC register lock Implements : rtc_lock_register_select_t_Class.
status_t RTC_HAL_SetTimePrescalerRegister(RTC_Type *const base, uint16_t value)
Set Time Prescaler Register.