Added tasks function definition and implementation files

This commit is contained in:
Anatole SCHRAMM 2019-05-02 17:20:18 +02:00
parent 3b848dd1ac
commit 8ab1f45013
2 changed files with 30 additions and 0 deletions

20
src/app/tasks.cpp Normal file
View File

@ -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);
}

10
src/app/tasks.h Normal file
View File

@ -0,0 +1,10 @@
#ifndef TASKS_H
#define TASKS_H
#include <Arduino.h>
#include "SAB.h"
boolean task1(void *);
boolean task2(void *);
boolean task_blink(void *);
#endif //TASKS_H