Fixed Thermo task includes

This commit is contained in:
@CarlWachter 2024-03-08 13:59:40 +01:00
parent 29c12b00cd
commit 79f77ba667
2 changed files with 5 additions and 2 deletions

View File

@ -10,6 +10,9 @@
#include <sta/tacos/thread.hpp>
#include <sta/devices/stm32/can.hpp>
#include <sta/rtos/mutex.hpp>
#include <sta/MAX31855.hpp>
#include <sta/devices/stm32/bus/spi.hpp>
#include <gpio.h>
#include <spi.h>

View File

@ -28,10 +28,10 @@ namespace demo
void ThermoTask::init()
{
mutex = new sta::RtosMutex("spi2");
spi2 = new sta::STM32SPI(&hspi2, 16000000, &mutex);
spi2 = new sta::STM32SPI(&hspi2, 16000000, mutex);
device_ = new sta::STM32SPIDevice(spi2, &cs_pin);
tc = new sta::MAX31855(&device_); //create driver object
tc = new sta::MAX31855(device_); //create driver object
}
void ThermoTask::func()