From 9439c6f1caffd938673018f3af7460b33a12528e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 20 Mar 2016 16:39:30 +0100 Subject: Another work progress --- docs/modules/tasks.md | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 docs/modules/tasks.md (limited to 'docs/modules/tasks.md') diff --git a/docs/modules/tasks.md b/docs/modules/tasks.md deleted file mode 100644 index 0078f00..0000000 --- a/docs/modules/tasks.md +++ /dev/null @@ -1,37 +0,0 @@ -Tasks -===== -Tasks allows separate jobs. - -## Functions -### tasks_run -```C -int8_t tasks_run(void) -``` -This function starts tasks execution. Should be called after all task slots are -prepared and at least one task is started. This function exits if no task exist or -all existing tasks exited. - -### task_init - -## Structures -### Task -```C -typedef struct { - uint8_t flags; - void (*func) (void); -} Task; -``` - -### TaskSlot -```C -typedef struct { - uint8_t flags; - Task *task; - uint8_t stack_size; - uint8_t stack[]; -} TaskSlot; -``` - -### Mutex - -### Semaphore -- cgit v1.2.3