Addapted to reduced CAN task

This commit is contained in:
@CarlWachter
2024-03-08 13:56:19 +01:00
parent 29c12b00cd
commit 7732fa2823
10 changed files with 85 additions and 100 deletions

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()