Hi Rob, 2010/5/2 Rob Hamerling <[email protected]>: > > Or am I overlooking something? Indeed you are, but it surprised me at the time and is well-hidden due to a lack of comment... At low clock rates, the constant can become negative and (at least at the time) there was an issue with signed compares. So this is the way to handle these.
> Even when the 'if' is needed a delay of 1 usec is neglectable compared to > the number of instructions in the rest of the procedure, which would be > another reason to ditch the else branch. I don't recall all details, but the us delay was put in to get *some* delay. If there was no delay, the loop is not executed at all and delay_1ms(1000) will return almost immediately. Better too long then no delay at all. At the ms delay, this statement becomes active with clocks below 6kHz, so I guess it can be removed there. > Joep I think you were the last to tune the delay library (although your name > is not in 'Adapted by'). Could you explain? I was indeed the last one according to SVN. I'm just not that disciplined at putting my name into the sources I adapt... I'll add it now and put a remark on the compares you mentioned. Joep -- You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jallib?hl=en.
