noch mal tu dem programm....
fehler:Code:#include "print.c" #include "asuro.h" #include "uart.c" #include "adc.c" #include "switches.c" #include "encoder.c" #include "encoder_low.c" #include "globals.c" #include "time.c" #include "i2c.c" #include "intro.c" #include "lcd.c" #include "leds.c" #include "motor.c" #include "motor_low.c" #include "rc5.c" #include "version.c" #define taste (!(PINC & (1<<PC4))) // Tastenabfrage #define keine_taste (PINC & (1<<PC4)) unsigned int data[2] int main(void){ while(1) { OdometrieData(data); SerWrite("\n\r",2); PrintInt(data[0]); SerWrite(" ",2); PrintInt(data[1]); Msleep(500); } }
kann man nicht die asuro.h aus version 261 einbinden?Code:C:\ASURO_src\FirstTry>make all 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 In file included from test.c:5: switches.c:37:21: myasuro.h: No such file or directory In file included from test.c:6: encoder.c:33:21: myasuro.h: No such file or directory In file included from test.c:10: i2c.c:27:17: i2c.h: No such file or directory In file included from test.c:12: lcd.c:55:17: lcd.h: No such file or directory lcd.c:56:17: i2c.h: No such file or directory In file included from test.c:16: rc5.c:39:17: rc5.h: No such file or directory 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 In file included from test.c:5: switches.c:37:21: myasuro.h: No such file or directory In file included from test.c:6: encoder.c:33:21: myasuro.h: No such file or directory In file included from test.c:10: i2c.c:27:17: i2c.h: No such file or directory In file included from test.c:12: lcd.c:55:17: lcd.h: No such file or directory lcd.c:56:17: i2c.h: No such file or directory In file included from test.c:16: rc5.c:39:17: rc5.h: No such file or directory -------- begin -------- avr-gcc --version avr-gcc (GCC) 3.3.1 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. Size before: test.elf : section size addr .text 1552 0 .data 0 8388704 .bss 1 8388704 .noinit 0 8388705 .eeprom 0 8454144 .stab 3288 0 .stabstr 1971 0 Total 6812 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 In file included from test.c:1: print.c: In function `PrintInt': print.c:97: warning: implicit declaration of function `itoa' print.c:98: warning: implicit declaration of function `SerPrint' print.c: In function `PrintLong': print.c:136: warning: implicit declaration of function `ltoa' print.c: At top level: print.c:202: warning: type mismatch with previous implicit declaration print.c:137: warning: previous implicit declaration of `SerPrint' print.c:202: warning: `SerPrint' was previously implicitly declared to return `int' In file included from test.c:4: adc.c: In function `Batterie': adc.c:81: error: `autoencode' undeclared (first use in this function) adc.c:81: error: (Each undeclared identifier is reported only once adc.c:81: error: for each function it appears in.) adc.c: In function `LineData': adc.c:142: error: `autoencode' undeclared (first use in this function) adc.c: In function `OdometrieData': adc.c:219: error: `autoencode' undeclared (first use in this function) In file included from test.c:5: switches.c:37:21: myasuro.h: No such file or directory In file included from test.c:5: switches.c: In function `PollSwitch': switches.c:86: error: `autoencode' undeclared (first use in this function) switches.c:120: error: `MY_SWITCH_VALUE' undeclared (first use in this function) In file included from test.c:6: encoder.c:33:21: myasuro.h: No such file or directory In file included from test.c:6: encoder.c: In function `Go': encoder.c:116: error: `uint32_t' undeclared (first use in this function) encoder.c:116: error: parse error before "enc_count" encoder.c:122: error: `enc_count' undeclared (first use in this function) encoder.c:122: warning: implicit declaration of function `abs' encoder.c:123: error: `MY_GO_ENC_COUNT_VALUE' undeclared (first use in this function) encoder.c:124: warning: implicit declaration of function `EncoderSet' encoder.c:132: error: `encoder' undeclared (first use in this function) encoder.c:132: error: `LEFT' undeclared (first use in this function) encoder.c:133: error: `RIGHT' undeclared (first use in this function) encoder.c:146: warning: implicit declaration of function `Msleep' encoder.c: In function `Turn': encoder.c:220: error: `MY_TURN_ENC_COUNT_VALUE' undeclared (first use in this function) encoder.c:236: error: `encoder' undeclared (first use in this function) encoder.c:236: error: `LEFT' undeclared (first use in this function) encoder.c:237: error: `RIGHT' undeclared (first use in this function) In file included from test.c:7: encoder_low.c: In function `EncoderInit': encoder_low.c:128: error: `autoencode' undeclared (first use in this function) encoder_low.c: In function `EncoderStop': encoder_low.c:168: error: `autoencode' undeclared (first use in this function) encoder_low.c: In function `EncoderStart': encoder_low.c:192: error: `autoencode' undeclared (first use in this function) encoder_low.c: At top level: encoder_low.c:225: warning: type mismatch with previous implicit declaration encoder_low.c:138: warning: previous implicit declaration of `EncoderSet' encoder_low.c:225: warning: `EncoderSet' was previously implicitly declared to return `int' encoder_low.c: In function `EncoderSet': encoder_low.c:226: error: `encoder' undeclared (first use in this function) encoder_low.c:226: error: `LEFT' undeclared (first use in this function) encoder_low.c:227: error: `RIGHT' undeclared (first use in this function) In file included from test.c:8: globals.c: At top level: globals.c:56: error: `encoder' used prior to declaration globals.c:95: error: `autoencode' used prior to declaration In file included from test.c:9: time.c:145: warning: type mismatch with previous implicit declaration encoder.c:253: warning: previous implicit declaration of `Msleep' time.c:145: warning: `Msleep' was previously implicitly declared to return `int' In file included from test.c:10: i2c.c:27:17: i2c.h: No such file or directory In file included from test.c:10: i2c.c: In function `InitI2C': i2c.c:50: error: `SDA_DDR' undeclared (first use in this function) i2c.c:50: error: `SDA' undeclared (first use in this function) i2c.c:51: error: `SCL_DDR' undeclared (first use in this function) i2c.c:51: error: `SCL' undeclared (first use in this function) i2c.c:52: error: `SDA_HI' undeclared (first use in this function) i2c.c:53: error: `SCL_HI' undeclared (first use in this function) i2c.c: In function `WriteI2C': i2c.c:79: error: `SDA_HI' undeclared (first use in this function) i2c.c:81: error: `SDA_LO' undeclared (first use in this function) i2c.c:82: error: `SCL_TOGGLE' undeclared (first use in this function) i2c.c:86: error: `SDA_DDR' undeclared (first use in this function) i2c.c:86: error: `SDA' undeclared (first use in this function) i2c.c:87: error: `HDEL' undeclared (first use in this function) i2c.c:88: error: `SCL_HI' undeclared (first use in this function) i2c.c:89: error: `SDA_PIN' undeclared (first use in this function) i2c.c:92: error: `SCL_LO' undeclared (first use in this function) i2c.c: In function `ReadI2C': i2c.c:119: error: `SDA_HI' undeclared (first use in this function) i2c.c:120: error: `SDA_DDR' undeclared (first use in this function) i2c.c:120: error: `SDA' undeclared (first use in this function) i2c.c:124: error: `HDEL' undeclared (first use in this function) i2c.c:125: error: `SCL_HI' undeclared (first use in this function) i2c.c:127: error: `SDA_PIN' undeclared (first use in this function) i2c.c:129: error: `SCL_LO' undeclared (first use in this function) i2c.c:135: error: `SDA_LO' undeclared (first use in this function) i2c.c:139: error: `SCL_TOGGLE' undeclared (first use in this function) i2c.c: In function `StartI2C': i2c.c:161: error: `I2C_START' undeclared (first use in this function) i2c.c: In function `StopI2C': i2c.c:181: error: `SDA_LO' undeclared (first use in this function) i2c.c:182: error: `I2C_STOP' undeclared (first use in this function) In file included from test.c:12: lcd.c:55:17: lcd.h: No such file or directory lcd.c:56:17: i2c.h: No such file or directory In file included from test.c:12: lcd.c: In function `InitLCD': lcd.c:64: error: `LCD_INIT' undeclared (first use in this function) lcd.c:67: warning: implicit declaration of function `SetIOLCD' lcd.c:67: error: `LCD_EN' undeclared (first use in this function) lcd.c:71: warning: implicit declaration of function `CommandLCD' lcd.c:71: error: `LCD_8BIT' undeclared (first use in this function) lcd.c:72: error: `LCD_4BIT' undeclared (first use in this function) lcd.c:80: error: `LCD_DISPLAYON' undeclared (first use in this function) lcd.c:81: error: `LCD_INCREASE' undeclared (first use in this function) lcd.c:82: error: `LCD_CLEAR' undeclared (first use in this function) lcd.c:83: error: `LCD_HOME' undeclared (first use in this function) lcd.c: In function `BacklightLCD': lcd.c:99: error: `LCD_BL' undeclared (first use in this function) lcd.c: In function `SetDataLCD': lcd.c:114: error: `LD7' undeclared (first use in this function) lcd.c:115: error: `LD6' undeclared (first use in this function) lcd.c:116: error: `LD5' undeclared (first use in this function) lcd.c:117: error: `LD4' undeclared (first use in this function) lcd.c:119: error: `LCD_D4' undeclared (first use in this function) lcd.c:119: error: `LCD_D5' undeclared (first use in this function) lcd.c:119: error: `LCD_D6' undeclared (first use in this function) lcd.c:119: error: `LCD_D7' undeclared (first use in this function) lcd.c:121: error: `LCD_EN' undeclared (first use in this function) lcd.c: At top level: lcd.c:149: warning: type mismatch with previous implicit declaration lcd.c:119: warning: previous implicit declaration of `SetIOLCD' lcd.c:149: warning: `SetIOLCD' was previously implicitly declared to return `int' lcd.c: In function `SetIOLCD': lcd.c:151: error: `portLCD' undeclared (first use in this function) lcd.c:154: error: `LCD_DEV' undeclared (first use in this function) lcd.c: In function `GetIOLCD': lcd.c:168: error: `LCD_DEV' undeclared (first use in this function) lcd.c: In function `SetCursorLCD': lcd.c:183: error: `cursorLCD' undeclared (first use in this function) lcd.c:184: error: `lineLCD' undeclared (first use in this function) lcd.c:187: error: `LCD_LINE1' undeclared (first use in this function) lcd.c:203: error: `LCD_DDRAM' undeclared (first use in this function) lcd.c: At top level: lcd.c:213: warning: type mismatch with previous implicit declaration lcd.c:203: warning: previous implicit declaration of `CommandLCD' lcd.c:213: warning: `CommandLCD' was previously implicitly declared to return `int' lcd.c: In function `CommandLCD': lcd.c:214: error: `LCD_HOME' undeclared (first use in this function) lcd.c:215: error: `lineLCD' undeclared (first use in this function) lcd.c:215: error: `cursorLCD' undeclared (first use in this function) lcd.c:216: error: `LCD_RS' undeclared (first use in this function) lcd.c: In function `ClearLCD': lcd.c:227: error: `LCD_CLEAR' undeclared (first use in this function) lcd.c:228: error: `LCD_HOME' undeclared (first use in this function) lcd.c: In function `WriteLCD': lcd.c:240: error: `LCD_RS' undeclared (first use in this function) lcd.c:242: error: `cursorLCD' undeclared (first use in this function) lcd.c: In function `PrintLCD': lcd.c:257: error: `cursorLCD' undeclared (first use in this function) lcd.c:257: error: `LCD_CHARS' undeclared (first use in this function) lcd.c:260: error: `lineLCD' undeclared (first use in this function) lcd.c: In function `PrintAlignLCD': lcd.c:312: error: `RIGHT' undeclared (first use in this function) lcd.c:313: error: `LCD_CHARS' undeclared (first use in this function) lcd.c:314: error: `CENTER' undeclared (first use in this function) In file included from test.c:14: motor.c: At top level: motor.c:92: error: parse error before "leftpwm" motor.c:94: warning: function declaration isn't a prototype motor.c: In function `SetMotorPower': motor.c:97: error: `leftpwm' undeclared (first use in this function) motor.c:107: error: `rightpwm' undeclared (first use in this function) In file included from test.c:16: rc5.c:39:17: rc5.h: No such file or directory In file included from test.c:16: rc5.c: At top level: rc5.c:62: error: parse error before "RC5lastsample" rc5.c:62: warning: type defaults to `int' in declaration of `RC5lastsample' rc5.c:62: warning: data definition has no type or storage class rc5.c:63: error: parse error before "RC5bittimer" rc5.c:63: warning: type defaults to `int' in declaration of `RC5bittimer' rc5.c:63: warning: data definition has no type or storage class rc5.c:65: error: parse error before "RC5data_tmp" rc5.c:65: warning: type defaults to `int' in declaration of `RC5data_tmp' rc5.c:65: warning: data definition has no type or storage class rc5.c:66: error: parse error before "RC5bitcount" rc5.c:66: warning: type defaults to `int' in declaration of `RC5bitcount' rc5.c:66: warning: data definition has no type or storage class rc5.c:68: error: parse error before "RC5data" rc5.c:68: warning: type defaults to `int' in declaration of `RC5data' rc5.c:68: warning: data definition has no type or storage class rc5.c:69: error: parse error before "enableRC5" rc5.c:69: warning: type defaults to `int' in declaration of `enableRC5' rc5.c:69: warning: data definition has no type or storage class rc5.c: In function `IsrRC5': rc5.c:78: error: `uint8_t' undeclared (first use in this function) rc5.c:78: error: parse error before "sample" rc5.c:82: error: `sample' undeclared (first use in this function) rc5.c: At top level: rc5.c:170: error: parse error before "ReadRC5" rc5.c:171: warning: return type defaults to `int' rc5.c: In function `ReadRC5': rc5.c:172: error: `uint16_t' undeclared (first use in this function) rc5.c:172: error: parse error before "retvalue" rc5.c:174: error: `retvalue' undeclared (first use in this function) test.c: At top level: test.c:26: error: syntax error before "int" test.c: In function `main': test.c:29: error: `data' undeclared (first use in this function) make: *** [test.o] Error 1 > Process Exit Code: 2
ich finde es nervig alle dateien wie oben einzeln einzubinden und dann sind es trotzdem nicht genug...







Zitieren

Lesezeichen