public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Grant Edwards <grante@visi.com>
To: "Pamulapati, Indrasena (CTS)" <pindrase@chn.cognizant.com>
Cc: Jesper Skov <jskov@redhat.com>, ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] Suitability of eCos
Date: Tue, 16 Jan 2001 11:26:00 -0000	[thread overview]
Message-ID: <20010116133059.A18824@visi.com> (raw)
In-Reply-To: <8F1D166D08ACD41196EE00B0D020944B82983A@CTSINENTSXUB>

On Tue, Jan 16, 2001 at 05:34:01PM +0530, Pamulapati, Indrasena (CTS) wrote:

> But does'nt the tick duration also determine the smallest addressable time
> unit.

Maybe not.

If you've got an extra hardware counter/timer, you can generally
configure it to cause an interrupt at a particular point in the
future.  The resolution of that "delay" period is determined by
the counter hardware and is independant of the rate at which
system-tick/scheduler interrupt occurs.

The most convenient situation would be to have a seperate
timer/counter for each possible parallel usage, but it's also
possible to simulate multiple counters by keeping a list of
pending delays and at each interrupt, set up the counter for
the interval until the next pending delay is to expire.

This technique will provide an interrupt at the end of each
delay period with extremely good accuracy without generating
excessive overhead.

You can start data transfer directly in the counter/timer ISR
or you can wake up a task and have it initiate the transfer.
Tasks waiting on events from ISRswill wake up whenever they
need to (assuming they are the highest priority runnable task)
independant of when the system-tick/scheduler interrupts happen.

Writing a "delay" device driver with a simple API which
consists of a single entry-point which blocks for a specified
period of time would be a fairly straight-forward task if you
wanted to try to isolate the various device drivers from each
other by passing control through user-tasks..

-- 
Grant Edwards
grante@visi.com

  parent reply	other threads:[~2001-01-16 11:26 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-16 11:08 Pamulapati, Indrasena (CTS)
2001-01-16  4:52 ` Jesper Skov
2001-01-16 11:26 ` Grant Edwards [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-01-16  7:52 James Dabbs
2001-01-16  4:07 Stenberg Björn
2001-01-16  1:52 Pamulapati, Indrasena (CTS)
2001-01-16  2:44 ` Jesper Skov
2001-01-16  7:27 ` Grant Edwards
2001-01-16  1:27 Ramana
2001-01-16  1:10 Pamulapati, Indrasena (CTS)

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=20010116133059.A18824@visi.com \
    --to=grante@visi.com \
    --cc=ecos-discuss@sources.redhat.com \
    --cc=jskov@redhat.com \
    --cc=pindrase@chn.cognizant.com \
    /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).