> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Steve Franks > Sent: Tuesday, December 09, 2008 11:22 AM > To: Weddington, Eric > Cc: [email protected] > Subject: Re: [avr-libc-dev] does delay.h really need all this junk? > > Right. Well, never liked the lack of warning when you overflow > anyhow. I just wrapped delay_loop_2 in a while (delay > 65535) - type > loop. I can live with the minimal overhead of the while and > delay-=65536 getting calc'ed a few times. I usually want a delay > equal to or slightly longer than the requested value when waiting for > I/O's to settle and the like anyway. Suprised no one has ever made > something like this official. Interesting goodies starting to appear > in the util folder, I noitce...probably been there for years (i.e. > setbaud) >
If you want a brand new goodie to play with, download WinAVR 20081205 and call this function: __builtin_avr_delay_cycles(n); Where you can give any 32-bit constant for 'n'. ;-) Perhaps that will help your situation. _______________________________________________ AVR-libc-dev mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/avr-libc-dev
