Vladimir Ljaschko (05.06.2014 09:49, просмотров: 1188)
EnergyMicro Gecko работал-работал, и перестал, висит на последней строчке, в ожидании "предыдущей операции записи". В чем может быть причина? /***************************************************************************//**
* @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.
******************************************************************************/
__STATIC_INLINE void BURTC_Sync(uint32_t mask)
{
/* Avoid deadlock if modifying the same register twice when freeze mode is */
/* activated. */
if (BURTC->FREEZE & BURTC_FREEZE_REGFREEZE)
return;
/* Wait for any pending previous write operation to have been completed */
/* in low frequency domain. This is only required for the Gecko Family */
while (BURTC->SYNCBUSY & mask)
;
}