Just straight up can card module SW

This commit is contained in:
CarlWachter
2024-02-23 16:51:20 +01:00
parent 8367127c62
commit a23e573e64
20 changed files with 7195 additions and 191 deletions

View File

@@ -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);