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: how to register timer DSR


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


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