Using Visual Studio to code for AVR
问题 I am using Visual Studio 2013 to write code for AVR. I have been following this tutorial. Whilst writing the code, I noticed that Visual Studio kept on underlining things like DDRB or PORTB and I keep on getting errors like Error: identifier "PORTB" is undefined , however, the program compiles correctly. Interestingly enough, upon pressing alt - F12 Visual finds numerous files where they are defined. 回答1: Your Makefile runs compiler with an option -mmcu=YOURCHIP. This implicitly defines macro