CanBus Init

This commit is contained in:
@CarlWachter 2024-01-03 11:08:58 +01:00
parent 481197d752
commit a66565e984

View File

@ -7,14 +7,18 @@
#ifdef STA_RTOS_CAN_BUS_ENABLE
#include <sta/debug/assert.hpp>
#include <sta/debug/debug.hpp>
#include <sta/bus/can/subscribable.hpp>
#include <sta/lang.hpp>
#include <sta/proto/isotp/transmitter.hpp>
#include <sta/proto/isotp/receiver.hpp>
#include <sta/rtos/defs.hpp>
#include <sta/rtos/system/can_bus.hpp>
#include <sta/rtos/system/events.hpp>
#include <sta/devices/stm32/hal.hpp>
#include <sta/rtos/system/events.hpp>
#include <sta/rtos/system/can_bus.hpp>
#include <sta/tacos/can_bus.hpp>
#include <cmsis_os2.h>
#include <FreeRTOS.h>
@ -25,9 +29,10 @@ namespace sta
{
namespace rtos
{
void initCanBus()
{
tacos::Canbus::instance(getCanController()).start()
sta::tacos::CanBus::instance(getCanController())->start();
}
} // namespace rtos
@ -170,7 +175,7 @@ namespace sta
}
inline void AlpakaCanBus::processTx()
void AlpakaCanBus::processTx()
{
tx_.process();
}