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

@@ -8,11 +8,11 @@
#include <sta/debug/debug.hpp>
#include <tasks/can_task.hpp>
#include <tasks/thermo.hpp>
#include <sta/tacos/manager.hpp>
#include <sta/tacos/statemachine.hpp>
#include <sta/devices/stm32/gpio_pin.hpp>
#include <sta/rtos/debug/heap_stats.hpp>
#include <sta/tacos.hpp>
#include <memory>
@@ -32,8 +32,7 @@ namespace sta
// ###### Register different threads for different states here. ######
// The dummy task runs for state 0.
Manager::instance()->registerThread(std::make_shared<demo::CanTask>("CAN SPAM", &hcan1), {0});
Manager::instance()->registerThread(std::make_shared<demo::ThermoTask>(), {0});
Manager::instance()->registerThread(std::make_shared<demo::CanTask>("CAN test", 0x22), {ALL_STATES});
STA_DEBUG_PRINTF("The answer to everything is %d", 42);