avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] Using delay functions with variable F_CPU clock?


From: David VanHorn
Subject: Re: [avr-gcc-list] Using delay functions with variable F_CPU clock?
Date: Wed, 4 Mar 2009 16:37:22 -0500



F_CPU is always evaluated upon each invocation, so if you ever change
it within one compilation unit, the next invocation of one of these
macros will reflect this.
That's compile-time, he's looking for execution-time changes in processor speed.
He didn't explicitly say so, but I think he's using xdiv to scale the CPU clock.
 

reply via email to

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