This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: vector type passed to cyg_drv_interrupt_create
- From: "Gary Thomas" <gary at mlbassoc dot com>
- To: LeoM at 3rdRootDSP dot Com
- Cc: "EcosMailList EcosList" <ecos-discuss at sources dot redhat dot com>
- Date: Fri, 2 Apr 2004 02:56:34 -0700 (MST)
- Subject: Re: [ECOS] vector type passed to cyg_drv_interrupt_create
- References: <20040402094722.12927.qmail@web40808.mail.yahoo.com>
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