Hallo Forum,
mein avr-gcc scheint die io-header nicht einzubinden.
Hier meine main.c:
1 | #include <avr/io.h>
|
2 | #include <avr/interrupt.h>
|
3 | #include <stdint.h>
|
4 |
|
5 | int main(void){
|
6 | DDRA = 0xFF;
|
7 | PORTA = 0x00;
|
8 | while (1);
|
9 | }
|
Ausgabe von avr-gcc:
1 | $ avr-gcc -g -Os -mmcu=atmega8 -c main.c
|
2 | main.c: In function ‘main’:
|
3 | main.c:10: error: ‘DDRA’ undeclared (first use in this function)
|
4 | main.c:10: error: (Each undeclared identifier is reported only once
|
5 | main.c:10: error: for each function it appears in.)
|
6 | main.c:11: error: ‘PORTA’ undeclared (first use in this function)
|
System ist Ubuntu hardy. gcc-avr und avr-libc sind selbstverständlich
installiert. Hat das schon mal jemand gehabt?