Relay and Thermo tasks

This commit is contained in:
CarlWachter
2024-03-11 14:41:56 +01:00
parent 505c1c3c0a
commit e1692d35b2
4 changed files with 161 additions and 24 deletions

View File

@@ -16,11 +16,11 @@
#include <gpio.h>
#include <spi.h>
namespace demo
namespace tasks
{
class ThermoTask : public sta::tacos::TacosThread {
public:
ThermoTask();
ThermoTask(uint32_t canID);
void init() override;
@@ -28,12 +28,14 @@ namespace demo
private:
sta::STM32GpioPin cs_pin = sta::STM32GpioPin(GPIOE, GPIO_PIN_13);
sta::STM32GpioPin* cs_pin[5];
sta::RtosMutex* mutex;
sta::STM32SPI* spi2;
sta::STM32SPIDevice* device_;
sta::MAX31855* tc;
sta::STM32SPIDevice* device_[5];
sta::MAX31855* tc_[5];
};
} // namespace demo