Jkx wrote:
I want to transform this: - sbi(PORTD,PD6) - to something like sbi(PD6) (yes i use a the old fashion sbi/cbi code, because I'm a old fashion guy:)
I often define 2 macros for each port pin like:
#define LED1_ON() PORTB|=0x40 #define LED1_OFF() PORTB&=~0x40 #define CS_ENABLE() PORTB&=~0x01 #define CS_DISABLE() PORTB|=0x01 that way I also abtract away from the polarity of the pin. -Bjarne Laursen, RoseTechnology A/S _______________________________________________ AVR-GCC-list mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
