MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / RTC_Sync

Function RTC_Sync

bsp/efm32/Libraries/emlib/src/em_rtc.c:82–93  ·  view source on GitHub ↗

/ * @brief * Wait for ongoing sync of register(s) to low frequency domain to complete. * * @note * This only applies to the Gecko Family, see the reference manual * chapter about Access to Low Energy Peripherals (Asynchronos Registers) * for details. For Tiny Gecko and Giant Gecko, the RTC supports immediate * updates of registers, and will automatically hold the bus until the *

Source from the content-addressed store, hash-verified

80 * registers that must complete any ongoing synchronization.
81 ******************************************************************************/
82__STATIC_INLINE void RTC_Sync(uint32_t mask)
83{
84 /* Avoid deadlock if modifying the same register twice when freeze mode is */
85 /* activated. */
86 if (RTC->FREEZE & RTC_FREEZE_REGFREEZE)
87 return;
88
89 /* Wait for any pending previous write operation to have been completed */
90 /* in low frequency domain. This is only required for the Gecko Family */
91 while (RTC->SYNCBUSY & mask)
92 ;
93}
94#endif
95
96/** @endcond */

Callers 3

RTC_CompareSetFunction · 0.85
RTC_EnableFunction · 0.85
RTC_InitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected