modularized bulk read
This commit is contained in:
+9
-3
@@ -8,6 +8,15 @@
|
||||
#include "task_msg.h"
|
||||
#include "sched_queue.h"
|
||||
|
||||
/**
|
||||
* Process data received from TinyFrame.
|
||||
* The queue holds received messages or parts of messages,
|
||||
* copied there by the USB thread.
|
||||
*
|
||||
* Since this is a separate thread that handles TF input and runs the listeners,
|
||||
* TF functions (send, respond) can be called immediately without the need for an
|
||||
* intermediate queued job.
|
||||
*/
|
||||
void TaskMessaging(const void * argument)
|
||||
{
|
||||
dbg("> Message queue task started!");
|
||||
@@ -17,9 +26,6 @@ void TaskMessaging(const void * argument)
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user