public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] RE : [ECOS] Understanding CYGNUM_HAL_RTC_PERIOD NUMERATOR DENOMINATOR
@ 2006-06-21  7:19 FALL
  2006-06-22 12:56 ` [ECOS] " David Fernandez
  0 siblings, 1 reply; 7+ messages in thread
From: FALL @ 2006-06-21  7:19 UTC (permalink / raw)
  To: ecos-discuss


Good Day, I have successfully compiled and ran ecos on an oki platform.
I am however not understanding how to setup the NUMERATOR DENOMINATOR
RTC_PERIOD per my platform specs. I have read the documentation but I am
still not clear on what values I should use.  Specifically, my processor
is runningat 33Mhz, when the hal_clock_initialize is called, what is the
relationship between that and the above mentioned values.

Moussa
hi Moussa try this config:
cdl_component CYGNUM_HAL_CPUCLOCK {
        display       "cpu clock"
        flavor        data
        calculated 33000000
	no_define
	define -file system.h CYGNUM_HAL_CPUCLOCK
        description   "Frequency of cpu clock in Hz."
    }
....
# Real-time clock/counter specifics
    cdl_component CYGNUM_HAL_RTC_CONSTANTS {
        display       "Real-time clock constants"
        flavor        none

        cdl_option CYGNUM_HAL_RTC_NUMERATOR {
            display       "Real-time clock numerator"
            flavor        data
            default_value 1000000000
        }
        cdl_option CYGNUM_HAL_RTC_DENOMINATOR {
            display       "Real-time clock denominator"
            flavor        data
            default_value 100
        }
        cdl_option CYGNUM_HAL_RTC_PERIOD {
            display       "Real-time clock period"
            flavor        data
            default_value (CYGNUM_HAL_CPUCLOCK/CYGNUM_HAL_RTC_DENOMINATOR) -1
        }
    }
khéweul!

FALL Birahim
Elsys-Design
PACA





________________________________________________________________
Sent via the WebMail system at elsys-design.com






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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-06-22 14:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-21  7:19 [ECOS] RE : [ECOS] Understanding CYGNUM_HAL_RTC_PERIOD NUMERATOR DENOMINATOR FALL
2006-06-22 12:56 ` [ECOS] " David Fernandez
2006-06-22 13:05   ` David Fernandez
2006-06-22 13:17     ` Gary Thomas
2006-06-22 13:43       ` David Fernandez
2006-06-22 14:12         ` Moussa Ba
2006-06-22 14:35           ` David Fernandez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).