mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/CAN-Demo.git
synced 2025-12-18 04:18:02 +00:00
Addapted to reduced CAN task
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user