Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: SoftSerial MAX14690 Buffer
Fork of rtos_threading_with_callback by
txQueue.cpp
00001 #include "txQueue.h" 00002 #include "linkLayer.h" 00003 #include <vector> 00004 00005 00006 bool TxQueue::addPacket(linkPacket *lp) 00007 { 00008 q.put(lp, osWaitForever, lp->priority); 00009 return true; 00010 } 00011 linkPacket* TxQueue::getNext() 00012 { 00013 osEvent evt = q.get(osWaitForever); 00014 //if (evt.status == osEventMessage) 00015 //printf("%u", evt.status); 00016 return (linkPacket*)evt.value.p;; //TODO; error handling. https://os.mbed.com/docs/v5.7/mbed-os-api-doxy/classrtos_1_1_queue.html 00017 }
Generated on Tue Sep 13 2022 05:19:36 by
1.7.2
