ich habe die libs und die incs hinnzugefügt. wo kann ich die source files hinzufügen???
mein Programm sieht bis jetzt so aus:
Code:
#include "asuro.h"
void Sleep3ms(short b);
int main(void)
{
Init();
while(1){
if(PollSwitch()!=0) {
SerPrint("Achtung\n");
if(PollSwitch()>7){//links
SetMotorPower (0,0);
Sleep3MS(50);
SetMotorPower (0,-100);
Sleep3MS(200);
SetMotorPower (100,100);
}
else{//rechts
SetMotorPower (0,0);
Sleep3MS(50);
SetMotorPower (-100,0);
Sleep3MS(200);
SetMotorPower (100,100);
}
}
else{
SetMotorPower (100,100);
Sleep3MS(30);
}
}
}
void Sleep3MS(short b){
short t;
for(t=0;t<=b;t++){
Sleep(216);
}
}
wenn ich es compiliere bringt er mir einige fehler:
Code:
../TestProjekt.c:10: warning: pointer targets in passing argument 1 of 'SerPrint' differ in signedness
../TestProjekt.c:13: warning: implicit declaration of function 'Sleep3MS'
../TestProjekt.c:36: warning: conflicting types for 'Sleep3MS'
../TestProjekt.c:13: warning: previous implicit declaration of 'Sleep3MS' was here
am schluss wird aber ausgegeben, dass die compilierung erflogreich war:
Build succeeded with 4 Warnings...
aber ein hex-file wird nicht erstellt.
in deinem beispielprogramm gibt er keine fehler aus, aber erstellt auch da keinen hex-file
Lesezeichen