arch/arm/src/tiva/common/lm4xx_tm3c_sysctrl.c
/****************************************************************************
 * Name: tiva_pll_lock
 *
 * Description:
 *   The new RCC values have been selected... wait for the PLL to lock on
 *
 ****************************************************************************/
tiva_pll_lock
Description:
The new RCC values have been selected... wait for the PLL to lock on
tiva_pll_lock Description : The new RCC values have been selected ... wait for the PLL to lock on
static inline void tiva_pll_lock(void)
{
  volatile uint32_t delay;
  for (delay = PLLLOCK_DELAY; delay > 0; delay--)
    {
      if ((getreg32(TIVA_SYSCON_RIS) & SYSCON_RIS_PLLLRIS) != 0)
        {
          return;
        }
    }
}
static inline void tiva_pll_lock ( void ) { volatile uint32_t delay ; for ( delay = PLLLOCK_DELAY ; delay > 0 ; delay -- ) { if ( ( getreg32 ( TIVA_SYSCON_RIS ) & SYSCON_RIS_PLLLRIS ) != 0 ) { return ; } } }
Name: tiva_pll_lock
 Description:
   The new RCC values have been selected... wait for the PLL to lock on
Name : tiva_pll_lock Description : The new RCC values have been selected ... wait for the PLL to lock on
/* Loop until the lock is achieved or until a timeout occurs */ /* Check if the PLL is locked on */ /* Yes.. return now */ /* If we get here, then PLL lock was not achieved */