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

Function CMU_Sync

bsp/efm32/Libraries/emlib/src/em_cmu.c:414–425  ·  view source on GitHub ↗

/ * @brief * Wait for ongoing sync of register(s) to low frequency domain to complete. * * @param[in] mask * Bitmask corresponding to SYNCBUSY register defined bits, indicating * registers that must complete any ongoing synchronization. ******************************************************************************/

Source from the content-addressed store, hash-verified

412 * registers that must complete any ongoing synchronization.
413 ******************************************************************************/
414__STATIC_INLINE void CMU_Sync(uint32_t mask)
415{
416 /* Avoid deadlock if modifying the same register twice when freeze mode is */
417 /* activated. */
418 if (CMU->FREEZE & CMU_FREEZE_REGFREEZE)
419 return;
420
421 /* Wait for any pending previous write operation to have been completed */
422 /* in low frequency domain */
423 while (CMU->SYNCBUSY & mask)
424 ;
425}
426
427
428/** @endcond */

Callers 2

CMU_ClockDivSetFunction · 0.85
CMU_ClockEnableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected