/ * @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. For Tiny Gecko and Giant Gecko, the RTC supports immediate * updates of registers, and will automatically hold the bus until the *
| 80 | * registers that must complete any ongoing synchronization. |
| 81 | ******************************************************************************/ |
| 82 | __STATIC_INLINE void RTC_Sync(uint32_t mask) |
| 83 | { |
| 84 | /* Avoid deadlock if modifying the same register twice when freeze mode is */ |
| 85 | /* activated. */ |
| 86 | if (RTC->FREEZE & RTC_FREEZE_REGFREEZE) |
| 87 | return; |
| 88 | |
| 89 | /* Wait for any pending previous write operation to have been completed */ |
| 90 | /* in low frequency domain. This is only required for the Gecko Family */ |
| 91 | while (RTC->SYNCBUSY & mask) |
| 92 | ; |
| 93 | } |
| 94 | #endif |
| 95 | |
| 96 | /** @endcond */ |
no outgoing calls
no test coverage detected