Serial port handler class that allows sharing data from the serial ports via message queues objects. Each instance of this class is intended to handle a serial port in the system and is suitable for slow serial protocols.

Dependents:   Nucleo_modbus_protocol_test

Files at this revision

API Documentation at this revision

Comitter:
gabrielrivas
Date:
Mon Jan 19 15:44:04 2015 +0000
Parent:
1:a891da6966b7
Commit message:
Documentation added.

Changed in this revision

SerialPortHandler.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/SerialPortHandler.cpp	Mon Jan 19 15:31:04 2015 +0000
+++ b/SerialPortHandler.cpp	Mon Jan 19 15:44:04 2015 +0000
@@ -18,8 +18,11 @@
 
 SerialPortHandler::SerialPortHandler(Serial* ps, MessageQueue<uint8_t>* txQueue, MessageQueue<uint8_t>* rxQueue)
 {
+    //assert(ps != NULL);
     m_ps = ps;
+    //assert(txQueue != NULL);
     m_txQueue = txQueue;
+    //assert(rxQueue != NULL);
     m_rxQueue = rxQueue;
 }