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: Boyapati, Anitha
Subject: RE: [avr-libc-dev] [bug #30363] _delay_xx() functions in <util/delay.h> are broken
Date: Thu, 7 Oct 2010 15:47:08 +0200



>> 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.

So, is it generally ok to give more delay than that is requested? I mean, would 
it not run into same problems as providing less delay run into?


>
>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".

Yes, the problem is figuring out which turns out to be least surpring :(

Regards
Anitha



reply via email to

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