src/C/devices.c
dev_irq_info_t *dev_get_irqinfo_from_irq(uint8_t irq)
{
    e_device_id dev_id = get_device_from_interrupt(irq);

    for (int j = 0; j < device_tab[dev_id].udev.irq_num; ++j) {
        if (device_tab[dev_id].udev.irqs[j].irq == irq) {
            return &device_tab[dev_id].udev.irqs[j];
        }
    }

    /* No irq has been matched */
    return NULL;
}
/**
 * \brief return the irq info structure from an IRQ and associated task
 *
 * \param[in] task the task to which the device belongs
 * \param[in] irq  the irq number
 *
 * \return the corresponding irq info structure, or 0 if not found.
 */
\brief return the irq info structure from an IRQ and associated task
\param[in] task the task to which the device belongs
\param[in] irq  the irq number

\return the corresponding irq info structure, or 0 if not found.
\ brief return the irq info structure from an IRQ and associated task \ param [ in ] task the task to which the device belongs \ param [ in ] irq the irq number \ return the corresponding irq info structure or 0 if not found .
dev_irq_info_t *dev_get_irqinfo_from_irq(uint8_t irq)
{
    e_device_id dev_id = get_device_from_interrupt(irq);
    for (int j = 0; j < device_tab[dev_id].udev.irq_num; ++j) {
        if (device_tab[dev_id].udev.irqs[j].irq == irq) {
            return &device_tab[dev_id].udev.irqs[j];
        }
    }
    return NULL;
}
dev_irq_info_t * dev_get_irqinfo_from_irq ( uint8_t irq ) { e_device_id dev_id = get_device_from_interrupt ( irq ) ; for ( int j = 0 ; j < device_tab [ dev_id ] . udev . irq_num ; ++ j ) { if ( device_tab [ dev_id ] . udev . irqs [ j ] . irq == irq ) { return & device_tab [ dev_id ] . udev . irqs [ j ] ; } } return NULL ; }
\brief return the irq info structure from an IRQ and associated task
 \param[in] task the task to which the device belongs
 \param[in] irq  the irq number
\ brief return the irq info structure from an IRQ and associated task \ param [ in ] task the task to which the device belongs \ param [ in ] irq the irq number
/* No irq has been matched */