You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
550 B
25 lines
550 B
//
|
|
// Created by MightyPork on 2017/12/22.
|
|
//
|
|
|
|
#include "platform.h"
|
|
#include "comm/messages.h"
|
|
#include "utils/hexdump.h"
|
|
#include "task_msg.h"
|
|
#include "sched_queue.h"
|
|
|
|
void TaskMessaging(const void * argument)
|
|
{
|
|
dbg("> Message queue task started!");
|
|
|
|
struct rx_que_item slot;
|
|
while (1) {
|
|
xQueueReceive(queRxDataHandle, &slot, osWaitForever);
|
|
assert_param(slot.len>0 && slot.len<=64); // check the len is within bounds
|
|
|
|
|
|
hexDump("MSG", slot.data, slot.len);
|
|
|
|
TF_Accept(comm, slot.data, slot.len);
|
|
}
|
|
} |