public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Question about Timer ISR& DSR
@ 2007-07-13 12:12 Picque Sébastien
  0 siblings, 0 replies; only message in thread
From: Picque Sébastien @ 2007-07-13 12:12 UTC (permalink / raw)
  To: ecos-discuss

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-07-13 12:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-13 12:12 [ECOS] Question about Timer ISR& DSR Picque Sébastien

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).