Hallo MadMan2k,
ich habe versucht dein updatet asurolib zu nutzen aber ich bekomme immer ein fehler meldung, tu ich etwas falsch oder habe ich etwas vergessen? alles geht gut mit asuolib 2.60 von sf.net.
Gruß,
dopez
Code:
set -e; avr-gcc -MM -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=asuro.lst asuro.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > asuro.d; \
[ -s asuro.d ] || rm -f asuro.d
set -e; avr-gcc -MM -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=test.lst test.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > test.d; \
[ -s test.d ] || rm -f test.d
-------- begin --------
avr-gcc --version
avr-gcc (GCC) 3.3 20030512 (prerelease)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
avr-gcc -c -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=test.lst test.c -o test.o
avr-gcc -c -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=asuro.lst asuro.c -o asuro.o
asuro.c:7: error: parse error before "count36kHz"
asuro.c:7: warning: type defaults to `int' in declaration of `count36kHz'
asuro.c:7: warning: data definition has no type or storage class
asuro.c:25: warning: return type defaults to `int'
asuro.c:25: warning: function declaration isn't a prototype
asuro.c:37: warning: return type defaults to `int'
asuro.c:37: warning: function declaration isn't a prototype
asuro.c:37: error: redefinition of `ISR'
asuro.c:25: error: `ISR' previously defined here
asuro.c:46: warning: return type defaults to `int'
asuro.c:46: warning: function declaration isn't a prototype
asuro.c:46: error: redefinition of `ISR'
asuro.c:37: error: `ISR' previously defined here
asuro.c:278: error: parse error before "PollSwitch"
asuro.c:279: warning: return type defaults to `int'
asuro.c:279: error: conflicting types for `PollSwitch'
asuro.h:164: error: previous declaration of `PollSwitch'
asuro.c: In function `Travel':
asuro.c:364: error: `uint16_t' undeclared (first use in this function)
asuro.c:364: error: (Each undeclared identifier is reported only once
asuro.c:364: error: for each function it appears in.)
asuro.c:364: error: parse error before "enc_count"
asuro.c:367: error: `int8_t' undeclared (first use in this function)
asuro.c:368: error: `uint8_t' undeclared (first use in this function)
asuro.c:374: error: `tot_count' undeclared (first use in this function)
asuro.c:374: error: `enc_count' undeclared (first use in this function)
asuro.c:375: error: `l_speed' undeclared (first use in this function)
asuro.c:375: error: `r_speed' undeclared (first use in this function)
asuro.c:378: error: `diff' undeclared (first use in this function)
asuro.c: In function `Rotate':
asuro.c:405: error: `uint16_t' undeclared (first use in this function)
asuro.c:405: error: parse error before "enc_count"
asuro.c:408: error: `int8_t' undeclared (first use in this function)
asuro.c:409: error: `uint8_t' undeclared (first use in this function)
asuro.c:415: error: `tot_count' undeclared (first use in this function)
asuro.c:415: error: `enc_count' undeclared (first use in this function)
asuro.c:416: error: `l_speed' undeclared (first use in this function)
asuro.c:416: error: `r_speed' undeclared (first use in this function)
asuro.c:419: error: `diff' undeclared (first use in this function)
make: *** [asuro.o] Error 1
Lesezeichen