/* smr = readl(AT91C_AIC_SMR(irq)) & ~AT91C_AIC_SRCTYPE; AT91C_BASE_AIC->AIC_SMR = smr | srctype; return 0; }  */
rt_uint32_t rt_hw_interrupt_get_active(rt_uint32_t fiq_irq)
/* smr = readl(AT91C_AIC_SMR(irq)) & ~AT91C_AIC_SRCTYPE; AT91C_BASE_AIC->AIC_SMR = smr | srctype; return 0; }  */
rt_uint32_t rt_hw_interrupt_get_active(rt_uint32_t fiq_irq)
{
    rt_uint32_t id;
    if (fiq_irq == INT_FIQ)
        return 0;
    readl(AT91C_AIC_IVR);
    id = readl(AT91C_AIC_ISR);
    return id;
}