mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/CAN-Demo.git
synced 2025-12-17 20:18:02 +00:00
Just straight up can card module SW
This commit is contained in:
@@ -7,11 +7,13 @@
|
||||
|
||||
#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 <memory>
|
||||
|
||||
extern CAN_HandleTypeDef hcan1;
|
||||
@@ -31,6 +33,7 @@ namespace sta
|
||||
|
||||
// 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});
|
||||
|
||||
STA_DEBUG_PRINTF("The answer to everything is %d", 42);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user