[ECOS] Re:CYGNUM_HAL_RTC_PERIOD help

Andrew Lunn andrew@lunn.ch
Wed May 10 07:15:00 GMT 2006


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



More information about the Ecos-discuss mailing list