Implemented RX on Node
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
#include "pinConfig.hpp"
|
||||
#include "pinConfigNode.hpp"
|
||||
#include "FreeRTOS.h"
|
||||
#include "task.h"
|
||||
#include "semphr.h"
|
||||
@@ -9,6 +9,7 @@ void vButtonTaskFn(void *pvParameters);
|
||||
|
||||
class VacumControl {
|
||||
private:
|
||||
uint coreMask;
|
||||
bool state = false;
|
||||
xSemaphoreHandle vacumMutex;
|
||||
xSemaphoreHandle interruptionSemaphore;
|
||||
@@ -16,7 +17,7 @@ private:
|
||||
xTaskHandle interruptionTask;
|
||||
xTaskHandle buttonTask;
|
||||
public:
|
||||
VacumControl();
|
||||
VacumControl(uint coreMask);
|
||||
|
||||
void initVacumPins();
|
||||
void setState(bool on);
|
||||
|
||||
Reference in New Issue
Block a user