eigentlich nix besonderes
es soll ein rc signal ausgelesen werden und danach eine pwm gestellt werden.
das ist die compiler ausgabe:
mfgCode:avr-gcc -g -mmcu=attiny13 -Wall -Wstrict-prototypes -Os -c main.c unknown MCU `attiny13' specified Known MCU names: AVR2 at90s2313 at90s2323 at90s2333 at90s2343 attiny22 attiny26 at90s4414 at90s4433 at90s4434 at90s8515 at90c8534 at90s8535 at86rf401 AVR3 atmega103 atmega603 at43usb320 at43usb355 at76c711 AVR4 atmega8 atmega8515 atmega8535 AVR5 atmega16 atmega161 atmega162 atmega163 atmega169 atmega32 atmega323 atmega64 atmega128 at94k AVR1 at90s1200 attiny11 attiny12 attiny15 attiny28 main.c:0: error: MCU `attiny13' supported for assembler only In file included from main.c:2: /sw/share/avr/lib/gcc/avr/3.4.3/../../../../avr/include/avr/io.h:252:6: warning: #warning "device type not defined" main.c: In function `SIG_INTERRUPT0': main.c:13: error: `PINB' undeclared (first use in this function) main.c:13: error: (Each undeclared identifier is reported only once main.c:13: error: for each function it appears in.) main.c:13: error: `TCNT0' undeclared (first use in this function) main.c: In function `main': main.c:21: error: `DDRB' undeclared (first use in this function) main.c:23: error: `MCUCR' undeclared (first use in this function) main.c:23: error: `ISC00' undeclared (first use in this function) main.c:24: error: `GIMSK' undeclared (first use in this function) main.c:24: error: `INT0' undeclared (first use in this function) main.c:26: error: `TIMSK' undeclared (first use in this function) main.c:26: error: `TOIE0' undeclared (first use in this function) main.c:27: error: `TCCR0B' undeclared (first use in this function) main.c:27: error: `CS01' undeclared (first use in this function) main.c:27: error: `CS00' undeclared (first use in this function) main.c:29: error: `TCCR0A' undeclared (first use in this function) main.c:29: error: `COM0A1' undeclared (first use in this function) main.c:41: error: `OCR0A' undeclared (first use in this function) main.c:46: error: `OCR0A0' undeclared (first use in this function) main.c:48: error: `PORTB' undeclared (first use in this function) main.c:50:2: warning: no newline at end of file main.c:50: error: parse error at end of input make: *** [main.o] Error 1
Lesezeichen