--- /dev/null
+CFLAGS:=-g -Wall -Wextra -Werror -DDEBUG
+PROG:=main
+OBJS:=interpret.o sds.o task.o main.o
+
+all: mTaskSymbols.h $(PROG)
+
+%.o: %.cpp
+ gcc $(CFLAGS) -c $< -o $@
+
+$(PROG): $(OBJS) misc.h
+ gcc $(LDFLAGS) -o $@ $(OBJS)
+
+mTaskSymbols.h:
+ CLMFLAGS=-nr make -BC ../.. mTaskInterpret
+ ../../mTaskInterpret > $@
+
+clean:
+ $(RM) $(OBJS) $(PROG)
void _exit(int i){
while(1);
+ (void)i;
}
//Globals
bool input_available(){
#ifdef STM32F767xx
- return true;
+ return false;
#else
struct timeval tv;
fd_set fds;
#endif
run_task(curtask);
}
- debug("Waiting for 500ms\n");
- delay(500);
- debug("done waiting\n");
write_byte('\n');
}
while(true){
//Check for new tasks
loop();
+ debug("Waiting for 500ms\n");
+ delay(500);
+ debug("done waiting\n");
+ delay(500);
}
return 0;
}