From: Gary Thomas <gthomas@redhat.com>
To: pushparaja@multitech.co.in
Cc: eCos Discussion <ecos-discuss@sources.redhat.com>
Subject: Re: [ECOS] RedBoot timer
Date: Sun, 16 Sep 2001 15:32:00 -0000 [thread overview]
Message-ID: <1000679342.18561.14.camel@station91> (raw)
In-Reply-To: <3BA4D300.B295A137@multitech.co.in>
On Mon, 2001-09-17 at 01:27, Pushparaj wrote:
> Hi,
> I am working on porting of RedBoot on powerpc platform.
> Presently I am facing problems with implementing the redboot timer. I cannot
> figure out how to implement the function CYGACC_CALL_IF_DELAY_US. This I guess
> is supposed to give a delay for the parameter passed and should not be interrupt
> driven and also that it should be some kind of loop.
> Could anybody help on this ?
This is exactly what's required of the function - pause for some number
of microseconds (the parameter), without using interrupts and without
disturbing any system resources (e.g. you can't go about reprogramming
the timer used by eCos heartbeat, etc).
There are many examples of this function in the sources. In most cases,
the macro yields a call to a HAL supplied routine 'hal_delay_us'. Just
have a look at them to see how it's done.
Note: on the PowerPC, you can probably just use one of the solutions
already in place.
next prev parent reply other threads:[~2001-09-16 15:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-10 11:24 [ECOS] problem building redboot - very strange Ravi Kumar B S
2001-09-10 13:18 ` Jonathan Larmour
2001-09-16 9:25 ` [ECOS] RedBoot timer Pushparaj
2001-09-16 15:32 ` Gary Thomas [this message]
2001-09-17 2:15 ` Jesper Skov
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=1000679342.18561.14.camel@station91 \
--to=gthomas@redhat.com \
--cc=ecos-discuss@sources.redhat.com \
--cc=pushparaja@multitech.co.in \
/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).