Gast
#2351369
Hallo zusammen ich bin ein neuling im c programieren und hab mir das avr studio 5 runtergeladen. Ich benutze das Stk600 mit den µc Atemega2560. So zum probelem ich hab mir ein kleinen cod geschrieben um das board zu testen /** * \file * * \brief Empty user application template * */ /* * Include header files for all drivers that have been imported from * AVR Software Framework (ASF). */ #include <asf.h> int main (void) { board_init(); DDRB = 0xFF; //Alle Bits an Port B auf Ausgang schaltem DDRA = 0X00; //Alle Bits an Port A auf Eingang schalten while(1) { PORTB =PINA; //Tasteninformation an POTRB ausgeben } return 0; // Insert application code here, after the board has been initialized. } Nun beim compelieren kommt diese fehler und ich kann damit nichts anfangen die Fehler: DDRB undeclared(first use in this function) each undeclared identifier is reported only once for each function is appears in DDRA undeclared(first use in this function) PINA undeclared (first use in this function) ich hoffe ihr könnt mir weiter helfen danke im vorraus