/ * @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. ******************************************************************************
| 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 |
no outgoing calls
no test coverage detected