avr-libc-dev
[Top][All Lists]
Advanced

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

Re: [avr-libc-dev] [bug #30363] _delay_xx() functions in <util/delay.h>


From: Bob Paddock
Subject: Re: [avr-libc-dev] [bug #30363] _delay_xx() functions in <util/delay.h> are broken
Date: Thu, 7 Oct 2010 08:02:06 -0400

> I think it can be argued either wise - "round up" or "round down". Both have
> trade-offs. When "round up" is used, the user might end up wondering why delay
> is a little more than what he bargained for.

Round Up might take a cycle or two or more than was  asked for, which
I doubt would surprise anyone.

Any amount less than what was  asked for might be a big surprise when
something goes terribly wrong because the delay was not long enough.

Always go for the operation of "Least Surprise".



reply via email to

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