/* Initialize the core and memory buck converters. 
This function is intended to be used for first time core and memory buck converters initialization. */
void am_hal_pwrctrl_bucks_init(void)
/* Initialize the core and memory buck converters. 
This function is intended to be used for first time core and memory buck converters initialization. */
void am_hal_pwrctrl_bucks_init(void)
{
    am_hal_pwrctrl_bucks_enable();
    while ( ( AM_REG(PWRCTRL, POWERSTATUS) &
              ( AM_REG_PWRCTRL_POWERSTATUS_COREBUCKON_M |
                AM_REG_PWRCTRL_POWERSTATUS_MEMBUCKON_M ) )  !=
              ( AM_REG_PWRCTRL_POWERSTATUS_COREBUCKON_M |
                AM_REG_PWRCTRL_POWERSTATUS_MEMBUCKON_M ) );
    am_hal_flash_delay(200 / 3);
}