[ECOS] vector type passed to cyg_drv_interrupt_create
Gary Thomas
gary@mlbassoc.com
Fri Apr 2 12:34:00 GMT 2004
Leo McManus said:
> Is it only on the ARM Integrator board that you pass the mask for the IRQ = 9
> and not the IRQ vector = 6?
>
> cyg_vector_t int1Vector = CYGNUM_HAL_INTERRUPT_EXPINT0; /** = 9 **/
>
> cyg_drv_interrupt_create(int1Vector,
> int1Priority,
> 0,
> &interrupt1ISR,
> &interrupt1DSR,
> &interrupt1Handle,
> &interrupt1);
>
> cyg_drv_interrupt_unmask( int1Vector );
You're mixing things up here - the value used by eCos is an internal
value which maps onto _one_ of the interrupt sources. It has nothing
to do with masks or vectors, as used by the ARM interrupt controller.
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss
mailing list