public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Gary Thomas <gary@mlbassoc.com>
To: Fabrice Gautier <Fabrice_Gautier@sdesigns.com>
Cc: "Ecos-List (E-mail)" <ecos-discuss@sources.redhat.com>
Subject: Re: [ECOS] HAL macros and RTC
Date: Tue, 28 Jan 2003 01:43:00 -0000	[thread overview]
Message-ID: <1043716402.24762.1246.camel@hermes.chez-thomas.org> (raw)
In-Reply-To: <9F77D654ED40B74CA79E5A60B97A087B0423E7@sd-exchange.sdesigns.com>

On Mon, 2003-01-27 at 17:04, Fabrice Gautier wrote:
> Hi,
> 
> In most hal, CYGNUM_HAL_INTERRUPT_xxx macros are used to describe all the
> different Interrupts vectors. Most of the CYGNUM_HAL_INTERRUPT_xxx are arch
> specific however. For example some arch define CYGNUM_HAL_INTERRUPT_TIMER0
> and _TIMER1 whereas other could define _TIMER1 and TIMER2 or just _TIMER if
> they have only one. So i assumed that those macros where completely arch
> specific and I defined a CYGNUM_HAL_RTC to the interrupt vector of an
> hardware clock.
> 
> Unfortunately this macros is used as by the kernel (in clock.cxx) as the
> interrupt driving the kernel internal clock. So i actually have to define
> CYGNUL_HAL_INTERRUPT_RTC as CYGNUM_HAL_INTERRUPT_TIMER and find another name
> for ny hardware clock.
> 
> Would you think it would be a better idea to let the
> CYGNUM_HAL_INTERRUPT_xxx macro arch-specifique and come up with a generic
> name to be used by the kernel ? 
> 
> The name doesnt matter really, it's just that I got confused on that...
> 

The platforms define CYGNUM_HAL_INTERRUPT_xxx and they are very
much platform specific.  CYGNUM_HAL_INTERRUPT_RTC is the one 
interrupt which must be defined by a platform for the heartbeat
clock/timer, thus the platform neutral name.

Is this not how you expected it to work?

-- 
------------------------------------------------------------
Gary Thomas                 |
MLB Associates              |  Consulting for the
+1 (970) 229-1963           |    Embedded world
http://www.mlbassoc.com/    |
email: <gary@mlbassoc.com>  |
gpg: http://www.chez-thomas.org/gary/gpg_key.asc
------------------------------------------------------------


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

  reply	other threads:[~2003-01-28  1:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-28  1:13 Fabrice Gautier
2003-01-28  1:43 ` Gary Thomas [this message]
2003-01-28  4:07 Fabrice Gautier
2003-01-28  4:33 ` Jonathan Larmour
2003-01-29 10:50 Fabrice Gautier
2003-01-29 18:53 ` Nick Garnett

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=1043716402.24762.1246.camel@hermes.chez-thomas.org \
    --to=gary@mlbassoc.com \
    --cc=Fabrice_Gautier@sdesigns.com \
    --cc=ecos-discuss@sources.redhat.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).