/* smr = at91_sys_read(AT91_AIC_SMR(irq)) & ~AT91_AIC_SRCTYPE; at91_sys_write(AT91_AIC_SMR(irq), smr | srctype); return 0; }  */
rt_uint32_t rt_hw_interrupt_get_active(rt_uint32_t fiq_irq)
/* smr = at91_sys_read(AT91_AIC_SMR(irq)) & ~AT91_AIC_SRCTYPE; at91_sys_write(AT91_AIC_SMR(irq), 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;
    at91_sys_read(AT91_AIC_IVR);
    id = at91_sys_read(AT91_AIC_ISR);
    return id;
}