Changeset 0e796cc in mainline for kernel/arch/arm32/src/machine_func.c


Ignore:
Timestamp:
2010-07-15T09:01:49Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
41ce4d9
Parents:
bd11d3e
Message:

Allow different number of IRQs for each arm machine.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified kernel/arch/arm32/src/machine_func.c

    rbd11d3e r0e796cc  
    125125}
    126126
     127/** Get IRQ number range used by machine. */
     128size_t machine_get_irq_count(void)
     129{
     130        size_t irq_count;
     131 
     132#if defined(MACHINE_gta02)
     133        irq_count = GTA02_IRQ_COUNT;
     134#elif defined(MACHINE_testarm)
     135        irq_count = GXEMUL_IRQ_COUNT;
     136#elif defined(MACHINE_integratorcp)
     137        irq_count = ICP_IRQ_COUNT;
     138#else
     139#error Machine type not defined.
     140#endif
     141        return irq_count;
     142}
     143
    127144/** @}
    128145 */
Note: See TracChangeset for help on using the changeset viewer.