Implemented RX on Node
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
#pragma once
|
||||
#define CORE_MASK_GOBOTRPC 0b10
|
||||
#define CORE_MASK_VACUM 0b01
|
||||
|
||||
#define LED1_PIN 16
|
||||
#define LED2_PIN 25
|
||||
|
||||
#define RELAY_PIN 15
|
||||
|
||||
#define GORPC_INT_PIN 3
|
||||
#define GORPC_INT_PIN 2
|
||||
#define GORPC_SDA_PIN 4
|
||||
#define GORPC_SCL_PIN 5
|
||||
|
||||
@@ -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