This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]