/* This function waits for the bandgap to be stable and disables the bandgap self bias. After being powered up, it needs to wait for the bandgap stable to be stable and then disable Bandgap Self bias for best noise performance.  */
void PMU_DisableBandgapSelfBiasAfterPowerUp(void)
/* This function waits for the bandgap to be stable and disables the bandgap self bias. After being powered up, it needs to wait for the bandgap stable to be stable and then disable Bandgap Self bias for best noise performance.  */
void PMU_DisableBandgapSelfBiasAfterPowerUp(void)
{
    uint32_t temp32;
    uint32_t regValue;
    do
    {
        regValue = ANATOP_AI_Read(kAI_Itf_Bandgap, kAI_BANDGAP_STAT0);
    } while ((regValue & AI_BANDGAP_STAT0_REFTOP_VBGUP_MASK) == 0UL);
    temp32 = ANATOP_AI_Read(kAI_Itf_Bandgap, kAI_BANDGAP_CTRL0);
    temp32 |= AI_BANDGAP_CTRL0_REFTOP_SELFBIASOFF_MASK;
    ANATOP_AI_Write(kAI_Itf_Bandgap, kAI_BANDGAP_CTRL0, temp32);
}