/* Setup SNVS interrupt. 
Enables or disables the related HW module interrupt, and attached the related sub-routine into the vector table. */
void snvs_srtc_setup_interrupt(void(*irq_subroutine)(void), uint8_t state)
/* Setup SNVS interrupt. 
Enables or disables the related HW module interrupt, and attached the related sub-routine into the vector table. */
void snvs_srtc_setup_interrupt(void(*irq_subroutine)(void), uint8_t state)
{
    uint32_t irq_id = IMX_INT_SNVS;
    if (state)
    {
        register_interrupt_routine(irq_id, irq_subroutine);
        enable_interrupt(irq_id, CPU_0, 0);
    }
    else
    {
        disable_interrupt(irq_id, CPU_0);
    }
}