
1 Jul
2011
1 Jul
'11
5:17 p.m.
Hi Alex,
Le 01/07/2011 14:37, Alex Waterman a écrit :
Why 'volatile'? Also, there shouldn't be an empty line before it but there should be one after it...
I used a volatile to prevent the compiler from optimizing out the (normally) useless loop. Is there a cleaner way to do this?
If the board supports udelay(), you should use that instead of a loop.
Best regards, Alex
Amicalement,
--
Albert.