/* Interrupt service routine for the digital regulator brownout. 
Determines which digital regulator is in brownout, then calls the installed brownout handler routine.  */
void pmu_digital_brownout_isr(void)
/* Interrupt service routine for the digital regulator brownout. 
Determines which digital regulator is in brownout, then calls the installed brownout handler routine.  */
void pmu_digital_brownout_isr(void)
{
    if (s_pmu.ldoArm.isInBrownout())
    {
        s_pmu.ldoArm.getBrownoutHandler()(kPMURegulator_ArmCore);
    }
    if (s_pmu.ldoGraphics.isInBrownout())
    {
        s_pmu.ldoGraphics.getBrownoutHandler()(kPMURegulator_Graphics);
    }
    if (s_pmu.ldoSoC.isInBrownout())
    {
        s_pmu.ldoSoC.getBrownoutHandler()(kPMURegulator_SoC);
    }
    HW_PMU_MISC1_SET(BM_PMU_MISC1_IRQ_DIG_BO);
}