Follow-up Comment #1, bug #19009 (project avr-libc):

It might be worth considering whether throwing possible
unfounded warnings (about F_CPU and/or missing optimization)
to those people could be avoided who are not interested in the
_delay_us() and _delay_ms() functions at all but only in
_delay_loop_1() and _delay_loop_2().  These two functions have
no special requirements (like optimization).

One option for this is to completely disable _delay_ms() and
_delay_us() (including their checks for F_CPU and __OPTIMIZE__)
based on the user predefining a macro, say _NO_DELAY_US_DELAY_MS
or such before including <util/delay.h>.

    _______________________________________________________

Reply to this item at:

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

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



_______________________________________________
AVR-libc-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to