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: Clocking in eCOS


I don't know AMX, so i don't know what a clock is in AMX. It sounds
like you need an alarm function as you describe. It does all the
things you need, so long as the resolution required is bigger than the
basic system tick time or 10ms.

If you need a smaller resolution you will then need to use a hardware
timer to generate interrupts. You can then build a counter on top of
this and so alarms, or simply use the ISR, DSR chain if you only need
one event per tick.

    Andrew

On Thu, Aug 29, 2002 at 11:59:42AM +0100, Costas Santos, Julio wrote:
> Hi,
> 
> My name is Julio Costas and I'm developing some applications under eCOS in a
> Intel Xscale board. 
> I'm porting some code from AMX to eCOS and I'm finding some problems with
> the clocking. 
> I have gone through the eCOS documentation but not much about clocking
> (example in Getting Started & Reference Manual).
> 
> It looks like a clock can be created with a resolution but there is no
> function in order to trigger it. So it is necessary to translate that clock
> to a counter and use counter & alarm specific functions. 
> 
> Any extra information about clocking under eCOS?
> - Generation of clock intervals with a resolution
> - Starting a clocking process
> - Spawning an event every timer tick
> 
> Cheers
> 
> Julio
> 
> 
> 
> 
> 
> 
> -- 
> Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
> and search the list archive: http://sources.redhat.com/ml/ecos-discuss
> 

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


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