avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] [bug #17216] change to the ../util/delay.h header for inc


From: Bill Perry
Subject: [avr-libc-dev] [bug #17216] change to the ../util/delay.h header for increased functionality
Date: Thu, 17 Sep 2009 19:39:45 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)

Follow-up Comment #4, bug #17216 (project avr-libc):

Further continue discussion from the avrfreaks thread:
http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&p=619023#619023

I think it is easy to set proper expectations for a new _delay_ns() function
through proper documentation so that people won't get a false impression that
the routines provide better precision than is actually possible

My overall desire is to have more accurate and more predictable delays for
the short delays and more importantly that a delay is never shorter than what
was requested.

The drop in alternate routines that Hans-Juergen do both of these in a fully
backward compatible way.

Long term it may be good to even re-write Han's routines to use the 
__builtin_avr_delay_cycles() function or even provide an additional builtin
delay function that take 2 arguments:
- a CPU clock rate
- a time to delay.
That way the entire functionality is handled by the compiler.









    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?17216>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]