X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=int%2Fnucleo-f767-blinky%2Fsrc%2Ftask.c;h=29c955bb6449ba9f64dff51927f80ba09f3a8af4;hb=0efbd98973520d55ec4e80e443911f43b3c28a0d;hp=bd6c36dd5b5d1b5442aa1c3278dde613071d4593;hpb=c0713ad3a24ba71c79dd55ed208fcb72ad6bee08;p=mTask.git diff --git a/int/nucleo-f767-blinky/src/task.c b/int/nucleo-f767-blinky/src/task.c index bd6c36d..29c955b 100644 --- a/int/nucleo-f767-blinky/src/task.c +++ b/int/nucleo-f767-blinky/src/task.c @@ -1,16 +1,13 @@ #include #include -#ifdef ARDUINO -#include -#include -#else +#ifndef STM32F767xx #include #include #endif -#include "misc.h" #include "task.h" +#include "interface.h" struct task tasks[MAXTASKS]; @@ -46,6 +43,7 @@ int task_register() //Return the task number for later removal debug("Received a task of length %d\n", tasks[ct].tlen); tasks[ct].used = true; + tasks[ct].lastrun = 0L; return ct; }