X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=int%2Fnucleo-f767-blinky%2Fsrc%2Fmain.c;h=0be5c0f1a79b936c7382010d6f7b925974b52da9;hb=0efbd98973520d55ec4e80e443911f43b3c28a0d;hp=1a704b4cb0803fc2e7ad2c79d6c808948ce86847;hpb=ddfd196fa4999b117701121a2f4cb1fe378f902d;p=mTask.git diff --git a/int/nucleo-f767-blinky/src/main.c b/int/nucleo-f767-blinky/src/main.c index 1a704b4..0be5c0f 100644 --- a/int/nucleo-f767-blinky/src/main.c +++ b/int/nucleo-f767-blinky/src/main.c @@ -81,20 +81,23 @@ void loop() // debug("Task %d not scheduled\n", ct); continue; } - printf("Current task to run: %d\n", ct); + debug("Current task to run: %d\n", ct); run_task(curtask); curtask->lastrun = cyclestart; + write_byte('\n'); } - write_byte('\n'); } #ifdef STM32F767xx +char s[128] = ""; int main1(void){ #else int main(int argc, char *argv[]){ gargc = argc; gargv = argv; #endif + debug("booting up\r\n"); + //Initialize systems setup(); sds_init(); @@ -104,8 +107,9 @@ int main(int argc, char *argv[]){ while(true){ //Check for new tasks + debug("loop\r\n"); loop(); - delay(10); + delay(100); } return 0; }