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

Function LEUART_Sync

bsp/efm32/Libraries/emlib/src/em_leuart.c:86–99  ·  view source on GitHub ↗

/ * @brief * Wait for ongoing sync of register(s) to low frequency domain to complete. * * @param[in] leuart * Pointer to LEUART peripheral register block * * @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

84 * registers that must complete any ongoing synchronization.
85 ******************************************************************************/
86__STATIC_INLINE void LEUART_Sync(LEUART_TypeDef *leuart, uint32_t mask)
87{
88 /* Avoid deadlock if modifying the same register twice when freeze mode is */
89 /* activated. */
90 if (leuart->FREEZE & LEUART_FREEZE_REGFREEZE)
91 {
92 return;
93 }
94
95 /* Wait for any pending previous write operation to have been completed */
96 /* in low frequency domain */
97 while (leuart->SYNCBUSY & mask)
98 ;
99}
100
101/** @endcond */
102

Callers 5

LEUART_BaudrateSetFunction · 0.85
LEUART_EnableFunction · 0.85
LEUART_InitFunction · 0.85
LEUART_TxFunction · 0.85
LEUART_TxExtFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected