34 #if defined(RTC_COUNT) && (RTC_COUNT > 0)
60 #define RTC_COMP_REG_VALID(reg) (((reg) <= 1))
71 #if defined(_EFM32_GECKO_FAMILY)
87 __STATIC_INLINE
void regSync(uint32_t mask)
96 while (
RTC->SYNCBUSY & mask)
121 EFM_ASSERT(RTC_COMP_REG_VALID(comp));
163 volatile uint32_t *compReg;
164 #if defined(_EFM32_GECKO_FAMILY)
168 EFM_ASSERT(RTC_COMP_REG_VALID(comp)
176 compReg = &(
RTC->COMP0);
177 #if defined(_EFM32_GECKO_FAMILY)
183 compReg = &(
RTC->COMP1);
184 #if defined(_EFM32_GECKO_FAMILY)
193 #if defined(_EFM32_GECKO_FAMILY)
219 #if defined(_EFM32_GECKO_FAMILY)
226 #if defined(_EFM32_GECKO_FAMILY)
265 #if defined(_EFM32_GECKO_FAMILY)
273 while (
RTC->SYNCBUSY)
332 #if defined(_EFM32_GECKO_FAMILY)
356 #if defined(_EFM32_GECKO_FAMILY)
#define _RTC_COMP0_COMP0_MASK
void RTC_Reset(void)
Restore RTC to reset state.
#define RTC_SYNCBUSY_CTRL
Emlib peripheral API "assert" implementation.
#define _RTC_CTRL_RESETVALUE
RAM and peripheral bit-field set and clear API.
void RTC_CounterReset(void)
Restart RTC counter from zero.
#define RTC_FREEZE_REGFREEZE
void RTC_CompareSet(unsigned int comp, uint32_t value)
Set RTC compare register value.
#define RTC_SYNCBUSY_COMP0
#define RTC_CTRL_DEBUGRUN
void RTC_Init(const RTC_Init_TypeDef *init)
Initialize RTC.
#define _RTC_IFC_RESETVALUE
Real Time Counter (RTC) peripheral API.
void RTC_Enable(bool enable)
Enable/disable RTC.
#define RTC_CTRL_COMP0TOP
#define RTC_SYNCBUSY_COMP1
#define _RTC_COMP0_COMP0_SHIFT
void RTC_FreezeEnable(bool enable)
RTC register synchronization freeze control.
#define _RTC_FREEZE_RESETVALUE
uint32_t RTC_CompareGet(unsigned int comp)
Get RTC compare register value.
#define _RTC_COMP1_RESETVALUE
#define _RTC_CTRL_EN_SHIFT
__STATIC_INLINE void BUS_RegBitWrite(volatile uint32_t *addr, unsigned int bit, unsigned int val)
Perform a single-bit write operation on a peripheral register.
#define _RTC_COMP0_RESETVALUE
#define _RTC_IEN_RESETVALUE