This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
CYGNUM_HAL_RTC_PERIOD
- From: "vasantha.rajan" <vasantha dot rajan at cranessoftware dot com>
- To: ecos-discuss at ecos dot sourceware dot org
- Cc: gary at mlbassoc dot com
- Date: Fri, 17 Feb 2006 19:10:56 +0530
- Subject: [ECOS] CYGNUM_HAL_RTC_PERIOD
Hi all,
I have some doubt in CYGNUM_HAL_RTC_PERIOD. I will list my doubts
1. In my code I just want to trigger my alarm for some micro seconds (say for
25 us)
2. right now in my CDL(hal/arm/arm9/excalibur/v2_0b1/cdl) I have my
CYGNUM_HAL_RTC_NUMERATOR as 1000000000, CYGNUM_HAL_RTC_DENOMINATOR as
100. So the clock triggers for every 10000000 ns(ie,10000 us)
3. Now I changed my CYGNUM_HAL_RTC_DENOMINATOR to 10000 so my clock will
trigger for every 100us.
4. So, In my cyg_alarm_initialize() API, if I use 25 + cyg_current_time() as
my trigger time value ,will the alarm function will be triggered in
25us????????or my calculation is wrong??????
Thank you very much
Vasanth
-------------------------------------------------------
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss