mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/CAN-Demo.git
synced 2025-09-29 08:37:33 +00:00
Broken Event flags
This commit is contained in:
@@ -8,9 +8,12 @@
|
||||
#include <tasks/can_task.hpp>
|
||||
#include <sta/debug/debug.hpp>
|
||||
#include <sta/rtos/debug/heap_stats.hpp>
|
||||
#include <sta/rtos/system/can_bus.hpp>
|
||||
|
||||
#include <cmsis_os2.h>
|
||||
|
||||
#include <sta/tacos/can_bus.hpp>
|
||||
|
||||
namespace demo
|
||||
{
|
||||
CanTask::CanTask(const char* name, CAN_HandleTypeDef * handle)
|
||||
@@ -36,9 +39,12 @@ namespace demo
|
||||
|
||||
void CanTask::func()
|
||||
{
|
||||
//STA_DEBUG_HEAP_STATS();
|
||||
//struct CanDataMsg myCanDataMsg = {
|
||||
///*.header = */ txHeader.id.sid, txHeader.id.eid, (uint8_t)txHeader.id.format, txHeader.payloadLength ,
|
||||
///*.payload = */ *payload // Initialize payload to zero (or any other values as needed)
|
||||
//};
|
||||
canController.sendFrame(txHeader, payload);
|
||||
//STA_DEBUG_HEAP_STATS();
|
||||
//STA_DEBUG_PRINTLN(sta::tacos::CanBus::instance()->queueCanBusMsg(myCanDataMsg, osWaitForever));
|
||||
STA_DEBUG_PRINTLN("SENT FRAME");
|
||||
HAL_Delay(1000);
|
||||
}
|
||||
|
Reference in New Issue
Block a user