This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Periodic execution of code in a thread context
- From: Stanislav Meduna <stano at meduna dot org>
- To: Steven Clugston <steven dot clugston at newcastle dot ac dot uk>, eCos Discussion <ecos-discuss at ecos dot sourceware dot org>
- Date: Wed, 23 Sep 2009 17:31:36 +0200
- Subject: Re: [ECOS] Periodic execution of code in a thread context
- References: <4DCF6DBD3535F742BB167C528BBEE9803827F45264@EXSAN01.campus.ncl.ac.uk>
Steven Clugston wrote:
> The other way I've tried is to use a timer/alarm
> attached to the system clock, but this executes
> in a DSR context which causes some limitations and
> I would prefer to use a normal thread context.
I am using cyg_flag_setbits / cyg_flag_wait for this
purpose.
You can generally use the signalling functions such as
cyg_flag_setbits or cyg_cond_signal from the DSR context,
only their waiting counterparts that can block are
thread-context only.
Hope this helps
--
Stano
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss