[ECOS] Question about Timer ISR& DSR
Picque Sébastien
S.Picque@TELEVIC.com
Fri Jul 13 12:12:00 GMT 2007
Hi,
I need to insert a new timer that will triggers every 10ms.
I knowhow to insert a new timer under ECOS but my question is how to insert a DSR and ISR
because I have to update some global variable inside ISR or DSR ?
How to handler an Isr with Timer declared by ECOS ?
Do I need to do these API calling :
cyg_drv_interrupt_create(CYGNUM_HAL_INTERRUPT_XX, 1,
(cyg_addrword_t)ISR_DATA_XXX, (cyg_ISR_t *)f_isr, (cyg_DSR_t *)XXX_dsr, &fuart_cyg_struct.XX_handle[0], &fuart_cyg_struct.X_intr_fct[0]);
cyg_drv_interrupt_attach(XX_cyg_struct.int_XXX_handle[0]);
cyg_drv_interrupt_unmask(CYGNUM_HAL_INTERRUPT_XXX);
Let me know about this because I think it is an easy thing to implement.
Regards,
Sébastien
Regards,
Sebastien Picque
**********************************************************************
Embedded Software Engineer Consultant (Company Alten).
Phone number: + 32 (0)51 30 30 45 (poste 283).
*********************************************************************
--
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