mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/rtos2-utils.git
synced 2025-06-10 18:15:59 +00:00
Changed controller getter
This commit is contained in:
parent
810f34e2da
commit
849e523d2c
@ -113,7 +113,7 @@ namespace sta
|
|||||||
*
|
*
|
||||||
* Implementation must be provided by application.
|
* Implementation must be provided by application.
|
||||||
*/
|
*/
|
||||||
extern CanController * getCanController();
|
extern STM32CanController * getCanController();
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
} // namespace rtos
|
} // namespace rtos
|
||||||
|
@ -25,23 +25,6 @@
|
|||||||
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
|
||||||
|
|
||||||
namespace
|
|
||||||
{
|
|
||||||
osThreadId_t canBusTaskHandle = nullptr;
|
|
||||||
osMessageQueueId_t canBusDataQueueHandle = nullptr;
|
|
||||||
osMessageQueueId_t canBusSysQueueHandle = nullptr;
|
|
||||||
|
|
||||||
sta::CanController * canBusController = nullptr;
|
|
||||||
|
|
||||||
const size_t queueLength = 8;
|
|
||||||
|
|
||||||
// Static memory buffers
|
|
||||||
CanDataMsg canBusDataQueueBuffer[queueLength];
|
|
||||||
CanSysMsg canBusSysQueueBuffer[queueLength];
|
|
||||||
uint32_t canBusStack[256];
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace sta
|
namespace sta
|
||||||
{
|
{
|
||||||
namespace rtos
|
namespace rtos
|
||||||
@ -274,7 +257,7 @@ namespace sta
|
|||||||
|
|
||||||
if (controller_->receiveFrame(fifo, &header, payload))
|
if (controller_->receiveFrame(fifo, &header, payload))
|
||||||
{
|
{
|
||||||
// debug::displayFrameUART(frame);
|
//debug::displayFrameUART(frame);
|
||||||
|
|
||||||
// Forward frame to callback
|
// Forward frame to callback
|
||||||
switch (fifo)
|
switch (fifo)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user