This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: vector type passed to cyg_drv_interrupt_create


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]