> > > > The delay functions require a constant so the delay can be calculated at > compile time. I would think that part of the problem is that you have to > introduce more code to check the value of f_cpu and to calculate the delay. > This pushes the delay calculation into run-time, plus it adds more code to > check the condition, which has to be factored into the delay itself.
It seems reasonable to be able to construct a sit-and-spin delay that would take into account whatever is programmed into XDIV
_______________________________________________ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list