Fix Error: chip/efm32_clockconfig.c:109:20: error: unused function 'efm32_synchronize' [-Werror,-Wunused-function]
static inline void efm32_synchronize(uint32_t bitset)
^
Error: chip/efm32_clockconfig.c:185:20: error: unused function 'efm32_enable_auxhfrco' [-Werror,-Wunused-function]
static inline void efm32_enable_auxhfrco(void)
* Private Functions
****************************************************************************/
-/****************************************************************************
- * Name: efm32_synchronize
- *
- * Description:
- * Wait for ongoing sync of register(s) to low frequency domain to
- * complete.
- *
- * Input Parameters:
- * bitset - Bitset corresponding to SYNCBUSY register defined bits,
- * indicating registers that must complete any ongoing
- * synchronization.
- *
- * Returned Value:
- * None
- *
- ****************************************************************************/
-
-static inline void efm32_synchronize(uint32_t bitset)
-{
- /* Avoid deadlock if modifying a register again after freeze mode is
- * activated.
- */
-
- if ((getreg32(EFM32_CMU_FREEZE) & CMU_FREEZE_REGFREEZE) == 0)
- {
- /* Wait for any pending previous write operation to complete */
-
- while ((getreg32(EFM32_CMU_SYNCBUSY) & bitset) != 0);
- }
-}
-
/****************************************************************************
* Name: efm32_statuswait
*
@@ -182,6 +151,7 @@ static void efm32_enable_hfxo(void)
efm32_statuswait(CMU_STATUS_HFXORDY);
}
+#ifdef CONFIG_ARMV7M_ITMSYSLOG
static inline void efm32_enable_auxhfrco(void)
{
/* Enable the HFXO */
@@ -189,6 +159,7 @@ static inline void efm32_enable_auxhfrco(void)
putreg32(CMU_OSCENCMD_AUXHFRCOEN, EFM32_CMU_OSCENCMD);
efm32_statuswait(CMU_STATUS_AUXHFRCORDY);
}
+#endif
/****************************************************************************
* Name: efm32_enable_leclocking
