[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [avr-libc-dev] does delay.h really need all this junk?

From: Weddington, Eric
Subject: RE: [avr-libc-dev] does delay.h really need all this junk?
Date: Tue, 9 Dec 2008 12:15:08 -0700


> -----Original Message-----
> From: address@hidden 
> [mailto:address@hidden On Behalf Of Steve Franks
> Sent: Tuesday, December 09, 2008 11:22 AM
> To: Weddington, Eric
> Cc: address@hidden
> 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:


Where you can give any 32-bit constant for 'n'. ;-)

Perhaps that will help your situation.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]