[ECOS] how to register timer DSR

Jonathan Larmour jifl@eCosCentric.com
Fri Jun 13 05:46:00 GMT 2003


Jonathan Larmour wrote:
> mohanlal jangir wrote:
> 
>> Hi,
>>     I am new to eCos and have been trying to understand eCos from some 
>> days.
>> I want a call back function to be called every 10ms. In linux, it is very
>> easy to register the call back function with kernel timers. I am 
>> wondering
>> if there is such mechanism in eCos also. I don't know which APIs to use.
> 
> 
> http://ecos.sourceware.org/ecos/docs-latest/ref/kernel-alarms.html
> 
> You can see an example in the eCos examples, which comes with eCos. Look 
> at simple-alarm.c.

Oh, and 
http://ecos.sourceware.org/ecos/docs-latest/user-guide/clocks-and-alarm-handlers.html

Documentation can be useful!

Jifl
-- 
eCosCentric    http://www.eCosCentric.com/    The eCos and RedBoot experts
--[ "You can complain because roses have thorns, or you ]--
--[  can rejoice because thorns have roses." -Lincoln   ]-- Opinions==mine


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



More information about the Ecos-discuss mailing list