mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/CAN-Demo.git
synced 2025-06-10 19:15:59 +00:00
Fixed Thermo task includes
This commit is contained in:
parent
29c12b00cd
commit
79f77ba667
@ -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>
|
||||
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user