Gast
#1716466
Hallo,
Kann jemand netterweise sagen wo der Fehler ist.
Es scheint mir alles korrekt zu sein.
Dank
main.c
-------------------------
#include "main.h"
int main (void){
while (1){
;
}
return 0;
}
-------------------------
main.h
-------------------------
#include <stdio.h>
#include <avr/wdt.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include <stdint.h>
#include <string.h>
#include <avr/eeprom.h>
DDRB = (1<<DDB0) | (1<<DDB1);
PORTB = (0<<PB0) | (0<<PB1 ) | (0<<PB2) | (0<<PB3) | (0<<PB4);
ADMUX = (1<<REFS0);
ADCSRA = (1 << ADEN) | (1 << ADSC ) | (1 << ADPS2) | (1<<ADPS1);
------------------
FehlerMeldung:
Compiling C: main.c
avr-gcc -c -mmcu=attiny13 -I. -gdwarf-2 -DF_CPU=8000000UL -Os
-funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall
-Wstrict-prototypes -Wa,-adhlns=./main.lst -std=gnu99 -MMD -MP -MF
.dep/main.o.d main.c -o main.o
In file included from main.c:2:
main.h:11: error: expected identifier or '(' before 'volatile'
main.h:11: error: expected ')' before '(' token
main.h:13: error: expected identifier or '(' before 'volatile'
main.h:13: error: expected ')' before '(' token
main.h:15: error: expected identifier or '(' before 'volatile'
main.h:15: error: expected ')' before '(' token
main.h:18: error: expected identifier or '(' before 'volatile'
main.h:18: error: expected ')' before '(' token
make.exe: *** [main.o] Error 1