Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

Re: [AVR-Chat] C Question in AVR GCC and codevision

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]

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.