[ECOS] HAL macros and RTC

Nick Garnett nickg@ecoscentric.com
Wed Jan 29 18:53:00 GMT 2003

Fabrice Gautier <Fabrice_Gautier@sdesigns.com> writes:

> I dont know if the "on core timer" is always plugged into the same IRQ line
> for MIPS or PPC,

It is, it's part of the architecture definition.

> but thats not the case for me. I think we should have in
> the guide: 
> "You only have to calculate and enter the proper CYGNUM_HAL_RTC_CONSTANTS
> definitions in the platform CDL file and define CYGNUM_HAL_INTERRUPT_RTC in
> [some include file]"

Good point, I'll take a look at doing that.

> By the way shouldnt the interrupt be a CDL option like the other RTC related
> constants ?

Not really. The interrupt used is fixed by the hardware of the timer,
usually. If a particular platform provided several timers, and if the
HAL implementor chose to allow a choice, then indeed this value might
need to change along with the definitions of the HAL_CLOCK_*()

Nick Garnett - eCos Kernel Architect

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

More information about the Ecos-discuss mailing list