Implemented RX on Node

This commit is contained in:
AlexanderHD27
2025-01-06 03:28:10 +01:00
parent caf7586b5b
commit 1e317adedd
29 changed files with 1646 additions and 2298 deletions

View File

@@ -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

View File

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