From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3832 invoked by alias); 25 Sep 2003 12:48:19 -0000 Mailing-List: contact ecos-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@sources.redhat.com Received: (qmail 3825 invoked from network); 25 Sep 2003 12:48:18 -0000 Received: from unknown (HELO lorien.elatec.si) (193.77.58.106) by sources.redhat.com with SMTP; 25 Sep 2003 12:48:18 -0000 Received: from elatec.si (onix [10.0.0.253]) by lorien.elatec.si (8.11.6/8.11.6) with ESMTP id h8PCop001392; Thu, 25 Sep 2003 14:50:52 +0200 Message-ID: <3F72E930.2000101@elatec.si> Date: Thu, 25 Sep 2003 12:48:00 -0000 From: Savin Zlobec User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020830 X-Accept-Language: en-us, en MIME-Version: 1.0 To: caocangmou@sina.com CC: ecos-discuss@sources.redhat.com Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: [ECOS] RE: Re: How to set clock related options? X-SW-Source: 2003-09/txt/msg00460.txt.bz2 caocangmou wrote: >But, I got a configuration from template(Akizuki H8/3068) : > Real-time clock numerator : 1000000000 > Real-time clock denominator : 100 > Real-time clock base prescale : 8192 > Real-time clock period :10 > OSC/Clock Frequency :20000000 >It seems not the case .What does period really mean? > CYGNUM_KERNEL_COUNTERS_RTC_PERIOD which defaults to CYGNUM_HAL_RTC_PERIOD is used to initialize you system clock hardware. Ecos tick is usually implemented with a hw timer which gives periodic interrupts. The CYGNUM_HAL_RTC_PERIOD is calculated so that you get an interrupt every 10ms (the default) and it depends on your timer hardware. Changing the tick requires setting the CYGNUM_HAL_RTC_NUMERATOR, CYGNUM_HAL_RTC_DENOMINATOR and CYGNUM_HAL_RTC_PERIOD (if it is not automatically calculated from the previous two - look how it is calculated in cdl - it can only depend on your frequency - in that case it is probably set to 10ms). savin -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss