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

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

[avr-gcc-list] heed help for the C Preprocessor


From: Ivan Dimitrov
Subject: [avr-gcc-list] heed help for the C Preprocessor
Date: Mon, 14 Jun 2004 13:55:47 +0300

hi all
when i'm using
#define SDA_PORT C
#define SDA_DIRECTION(X) DDR##X
and in function foo()
SDA_DIRECTION(SDA_PORT) |= 64;
so, i am getting 
DDRSDA_PORT |= 64;
instead of 
DDRC |= 64;

how have i write a #def ine to get the right macro? (DDRC |= 64;)
Regards
I.

reply via email to

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