This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: Question About "Clock Hardware Initialization Value"
- To: Huang Qiang <jameshq at liverpool dot ac dot uk>
- Subject: RE: [ECOS] Question About "Clock Hardware Initialization Value"
- From: Gary Thomas <gthomas at cambridge dot redhat dot com>
- Date: Mon, 23 Apr 2001 06:45:12 -0600 (MDT)
- Cc: eCos <ecos-discuss at sources dot redhat dot com>
- Organization: Red Hat, Inc.
On 23-Apr-2001 Huang Qiang wrote:
> Hi all:
> I am configuring the tick time for the ecos. I met with a clock hardware
> initialization value option in the ecos configuration tool. It recommend to
> refer to the hardware reference. Does it mean the target platform or the
> microprocessor's manual? I am currently using the ARM Evaluator7T Board for
> developing. What is this value used to do?
The answer to this depends on the actual hardware platform. Sometimes the
hardware (registers, timers, etc) used for the tick timer are on the processor
(in the case of the Evaluator), other times it is implemented in separate
logic on the target board.
In your case, look at the E7T documentation on the internal timers to figure
out what the value should be. You can probably get some idea from seeing the
current value.
Specifically for the Evaluator, the timer is clocked by the system clock, so
the "period" value is simply the system clock divided by the timer rate. In
the current CDL, these values are calculated, so in order to change them you'll
have to edit the CDL file directly.