Re: [AVR-Chat] C Question in AVR GCC and codevision
2007-06-17 by BobGardner@aol.com
In a message dated 6/17/2007 5:46:40 P.M. Eastern Daylight Time,
kernels@slingshot.co.nz writes:
unsigned char random_value;
while(1){
random_value = Get_Random_Value();
if (random_value) sbi(PORTA, PA1);
else cbi(PORTA, PA1);
}
====================================
As long as those macros compile to instructions and not to subroutines,
there is no performance penalty. I hate discussions about readability quality...
too subjective.....
************************************** See what's free at http://www.aol.com.
[Non-text portions of this message have been removed]