/* Interrupt service routine for the analog regulator brownout. 
Determines which analog regulator is in brownout, then calls the installed brownout handler routine.  */
void pmu_analog_brownout_isr(void)
/* Interrupt service routine for the analog regulator brownout. 
Determines which analog regulator is in brownout, then calls the installed brownout handler routine.  */
void pmu_analog_brownout_isr(void)
{
    if (s_pmu.ldo1p1.isInBrownout())
    {
        s_pmu.ldo1p1.getBrownoutHandler()(kPMURegulator_1p1);
    }
    if (s_pmu.ldo2p5.isInBrownout())
    {
        s_pmu.ldo2p5.getBrownoutHandler()(kPMURegulator_2p5);
    }
    if (s_pmu.ldo3p0.isInBrownout())
    {
        s_pmu.ldo3p0.getBrownoutHandler()(kPMURegulator_3p0);
    }
    HW_PMU_MISC1_SET(BM_PMU_MISC1_IRQ_ANA_BO);
}