Gast
#182145
Hi Leute habt Ihr ne Ahnung was für Headerfiles ich benötige damit bei mir das Beispiel aus dem gcc Tutorial unter "aktivieren des ADC" auch funktioniert ? Compiler bringt folgende Fehlermeldungen: neu.c:3: error: parse error before "channel" neu.c:4: warning: return type defaults to `int' neu.c:4: warning: function declaration isn't a prototype neu.c: In function `ReadChannel': neu.c:5: error: `uint8_t' undeclared (first use in this function) neu.c:5: error: (Each undeclared identifier is reported only once neu.c:5: error: for each function it appears in.) neu.c:5: error: parse error before "i" neu.c:6: error: `uint16_t' undeclared (first use in this function) neu.c:8: error: `ADCSRA' undeclared (first use in this function) neu.c:8: error: `ADEN' undeclared (first use in this function) neu.c:8: error: `ADPS1' undeclared (first use in this function) neu.c:8: error: `ADPS0' undeclared (first use in this function) neu.c:11: error: `ADMUX' undeclared (first use in this function) neu.c:11: error: `channel' undeclared (first use in this function) neu.c:12: error: `REFS1' undeclared (first use in this function) neu.c:12: error: `REFS0' undeclared (first use in this function) neu.c:16: error: `ADSC' undeclared (first use in this function) neu.c:17: error: `ADIF' undeclared (first use in this function) neu.c:19: error: `result' undeclared (first use in this function) neu.c:22: error: `i' undeclared (first use in this function) neu.c:26: error: `ADC' undeclared (first use in this function) neu.c:37:2: warning: no newline at end of file make.exe: *** [neu.o] Error 1 der kennt wohl die Register nicht Danke für eure Hilfe