From: Nodir Qodirov <nodir.qodirov@gmail.com>
To: ecos-discuss@ecos.sourceware.org
Subject: [ECOS] eCos heartbeat function handler
Date: Sun, 19 Jul 2009 08:08:00 -0000 [thread overview]
Message-ID: <186ad4050907190108s119964a5x26d74ee8701ec52c@mail.gmail.com> (raw)
Hello everybody!
I want to know "heartbeat" function of the eCos.
As far as I know, all Embedded Systems have CPU provided or external
source of ticks, which is can be thought as "heartbeat" of system. And
it can have different rates depending on h/w.
I have read eCos reference and previous posts in ecos-discuss, but
couldn't find which function is run on each tick?
From eCos book of Anthony J. Massa and eCos Ref I found that Clock,
Alarm and Timer are attached to the Counter, so I thought some
function of Counter (as it is basement for others) should have
heartbeat handler function.
Then I had a look to the source code and found
void Cyg_Counter::tick( cyg_uint32 ticks )
function in
packages\kernel\current\src\common\clock.cxx
it seemed to be function which is called at each tick. Am I right?
Basically I have 2 questions:
1) Which function is called on each heartbeat (=hardware provided
source of ticks)?
2) Where should I specify (some assembler file...) which function to
call on each heartbeat?
Thanking in advence,
Nodir.
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
next reply other threads:[~2009-07-19 8:08 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-19 8:08 Nodir Qodirov [this message]
2009-07-19 8:18 ` Andrew Lunn
2009-07-19 14:07 ` Nodir Qodirov
2009-07-19 14:47 ` Christophe Coutand
2009-07-21 6:52 ` Nodir Qodirov
2009-07-21 7:27 ` Christophe Coutand
2009-08-05 11:22 ` Ormund Williams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=186ad4050907190108s119964a5x26d74ee8701ec52c@mail.gmail.com \
--to=nodir.qodirov@gmail.com \
--cc=ecos-discuss@ecos.sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).