This is the mail archive of the ecos-discuss@sources.redhat.com 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]

Re: Maximum RTC Tick Rate


Fred Woolsey wrote:
At the moment, I'm running on a test platform- a 450 MHz Pentium II Compaq
Deskpro- probably a bit more powerful than the average embedded CPU.  The
reason for the high clock rate is (probably) twofold- the need to implement
sub-ms timeouts in my app, and a lack of experience with eCos.  Currently, I
use the RTC to drive all the timers in my app, using
cyg_clock_to_counter( ), with an associated alarm and a flag for signaling
timer expiration.  If anyone has any pointers regarding a more efficient way
to do timing, I'm all ears!!!
Well one can argue that interrupts aren't as efficient as polling the clock for very short timeouts, since interrupt handling inevitably incurs overhead. You can use the HAL_DELAY_US macro for polled microsecond delays this way.

Jifl
--
eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts
--[ "You can complain because roses have thorns, or you ]--
--[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine


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


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