From 8ab1f45013c08eb48c381be290858c0997181301 Mon Sep 17 00:00:00 2001 From: Anatole SCHRAMM Date: Thu, 2 May 2019 17:20:18 +0200 Subject: [PATCH] Added tasks function definition and implementation files --- src/app/tasks.cpp | 20 ++++++++++++++++++++ src/app/tasks.h | 10 ++++++++++ 2 files changed, 30 insertions(+) create mode 100644 src/app/tasks.cpp create mode 100644 src/app/tasks.h diff --git a/src/app/tasks.cpp b/src/app/tasks.cpp new file mode 100644 index 0000000..f75d726 --- /dev/null +++ b/src/app/tasks.cpp @@ -0,0 +1,20 @@ +#include "tasks.h" + +boolean task1(void *pData) +{ + Serial.println("Hi, i am the task one"); + + return true; +} + +boolean task2(void *pData) +{ + Serial.println("Hi, i am the task two"); + + return true; +} +boolean task_blink(void *pData) +{ + SAB *p = (SAB *) pData; + p->getIoManager().getPcf().togglePin(PCF8574::P2); +} diff --git a/src/app/tasks.h b/src/app/tasks.h new file mode 100644 index 0000000..e965885 --- /dev/null +++ b/src/app/tasks.h @@ -0,0 +1,10 @@ +#ifndef TASKS_H +#define TASKS_H +#include +#include "SAB.h" + +boolean task1(void *); +boolean task2(void *); +boolean task_blink(void *); + +#endif //TASKS_H