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