Added tasks function definition and implementation files
This commit is contained in:
parent
3b848dd1ac
commit
8ab1f45013
20
src/app/tasks.cpp
Normal file
20
src/app/tasks.cpp
Normal 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
10
src/app/tasks.h
Normal 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
|
Loading…
Reference in New Issue
Block a user