using AVR studio 7.
I thought I had this working but its not, I need to do the below here but it simple is not working. How does the __AVR_xxxxxxxxxxx__ get set. My make files have the right chip names MCU = atmega32u4
but using the code below, its not landing in the if statements.
#if defined (__AVR_ATmega32u2__) || defined (__AVR_AT90USB162__)
#define _PORT PORTB
#define _DDR DDRB
#define _PIN PINB
#else if defined(__AVR_ATmega32u4__)
#define _PORT PORTF
#define _DDR DDRF
#define _PIN PINF
#endif
Am I missing an include?
Should I do #if defined (__AVR_ATmega32u2__ || __AVR_AT90USB162__)