tf update and some progress

This commit is contained in:
2017-12-23 12:36:16 +01:00
parent d6c4372755
commit ccbff578b3
8 changed files with 82 additions and 74 deletions
+6 -1
View File
@@ -2,8 +2,9 @@
// Created by MightyPork on 2017/12/22.
//
#include <comm/messages.h>
#include "platform.h"
#include "comm/messages.h"
#include "utils/hexdump.h"
#include "task_msg.h"
#include "sched_queue.h"
@@ -15,6 +16,10 @@ void TaskMessaging(const void * argument)
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);
}
}