|
From: | Joerg Wunsch |
Subject: | Re: [avr-gcc-list] generating a delay |
Date: | Mon, 24 Oct 2005 10:10:18 +0200 (MET DST) |
"varsha" <address@hidden> wrote: > - but i think it is not generating the correct value... The compiler will optimize your loop (or parts of it) away as it doesn't see the variables count and j would be used anywhere. > what is the proper way to write a delay routine? Use the stuff from <avr/delay.h>. -- J"org Wunsch Unix support engineer address@hidden http://www.interface-systems.de/~j/
[Prev in Thread] | Current Thread | [Next in Thread] |