This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Re:CYGNUM_HAL_RTC_PERIOD help
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Ram Sudhir Tadavarthi <ram dot tadavarthi at netco dot de>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Wed, 10 May 2006 09:14:46 +0200
- Subject: Re: [ECOS] Re:CYGNUM_HAL_RTC_PERIOD help
- References: <20060510064216.336BF20D176@gemmini.netco.de>
On Wed, May 10, 2006 at 08:56:27AM +0200, Ram Sudhir Tadavarthi wrote:
>
>
> -----Urspr?ngliche Nachricht-----
> Von: Ram Sudhir Tadavarthi [mailto:ram.tadavarthi@netco.de]
> Gesendet: Mittwoch, 10. Mai 2006 08:54
> An: 'Gary Thomas'
> Betreff: AW: [ECOS] CYGNUM_HAL_RTC_PERIOD help
>
> Hallo,
>
> Target environment:
> Platform : Motorola PQ2FADS-ZU Board
> Processor: MPC 8280 (predecessor of MPC 8260)
> Clock frequency : 100MHz
>
> Project components:
> eCos Kernel
> FreeBSD stack
>
> Thanks a lot. CYGHWR_HAL_POWERPC_BOARD_SPEED is set properly to 100MHz.
> Still there is one more parameter CYGNUM_HAL_RTC_DENOMINATOR which decides
> the CYGNUM_HAL_RTC_PERIOD. Can you please guide me how to find the proper
> value for this denominator? I have set the numerator to 1000000000,
> denominator to 100 and CYGNUM_HAL_RTC_PERIOD to
> (((CYGHWR_HAL_POWERPC_BOARD_SPEED*1000000)/4)/CYGNUM_HAL_RTC_DENOMINATOR)
> which is computed as 250000.
>
> With this configuration my loop back ping test (ping_lo_test.c) application
> gives following ping results which the delay for loopback test ex: 80ms
> which is too high(which might be incorrect due to wrong
> CYGNUM_HAL_RTC_DENOMINATOR) and this delay value is changing if I change the
> denominator. So I concluded that my CYGNUM_HAL_RTC_PERIOD settings are wrong
> because the displayed time is high which is not believable because it is an
> internal loopback test for freebsd stack.
>
> Can anybody show me the correct direction to proceed further?
Use the timer test cases to test the timer. In particular
clocktruth.cxx.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss