In program like program.c I have
#define lcd_ddr DDRC #define lcd_port PORTC
In an include like include.h I would like to use something like
lcd_ddr = 0xff; lcd_port = 0xf7;
This way the include.h can be universal for micros with and without a PORTC. All I have to do is change the code in program.c to DDRB and PORTB.
Is there a way this can be done?