Broken Event flags

This commit is contained in:
@CarlWachter
2024-02-16 17:44:01 +01:00
parent 68365e3d5e
commit 51fad902e7
6 changed files with 15 additions and 14 deletions

View File

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