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

Function LETIMER_Sync

bsp/efm32/Libraries/emlib/src/em_letimer.c:89–100  ·  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. * * @param[in] letimer * Pointer to LETIMER peripheral register block * * @param[in] mask * Bitmask corresponding to SYNCBUSY

Source from the content-addressed store, hash-verified

87 * registers that must complete any ongoing synchronization.
88 ******************************************************************************/
89__STATIC_INLINE void LETIMER_Sync(LETIMER_TypeDef *letimer, uint32_t mask)
90{
91 /* Avoid deadlock if modifying the same register twice when freeze mode is */
92 /* activated. */
93 if (letimer->FREEZE & LETIMER_FREEZE_REGFREEZE)
94 return;
95
96 /* Wait for any pending previous write operation to have been completed */
97 /* in low frequency domain, only required for Gecko Family of devices */
98 while (letimer->SYNCBUSY & mask)
99 ;
100}
101#endif
102
103/** @endcond */

Callers 4

LETIMER_CompareSetFunction · 0.85
LETIMER_EnableFunction · 0.85
LETIMER_InitFunction · 0.85
LETIMER_RepeatSetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected