This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Question about Timer ISR& DSR
- From: Picque Sébastien <S dot Picque at TELEVIC dot com>
- To: <ecos-discuss at sourceware dot org>
- Date: Fri, 13 Jul 2007 14:11:12 +0200
- Subject: [ECOS] Question about Timer ISR& DSR
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