Chris Pepper / Mbed 2 deprecated SimpleSerialProtocolExample

Dependencies:   mbed SimpleSerialProtocol MODSERIAL

Revision:
3:8ac7e37d0e0e
Parent:
2:8799090c0fe4
Child:
9:81ea54f202e9
--- a/TestProtocol.h	Mon Jan 16 22:46:45 2012 +0000
+++ b/TestProtocol.h	Fri Jan 27 14:30:34 2012 +0000
@@ -9,10 +9,10 @@
 public:
     TestProtocol() : Protocol(p9, p10, NC) { //LED1 to 4 for a status led, NC to disable
         _dma_port = 0; //set the dma port, must be unique per class 0 - 9
-        packetCallback(1, this, &TestProtocol::onEchoPacket);
+        receiveCallback(1, this, &TestProtocol::onEchoPacket);
     }
     virtual ~TestProtocol() {};
-    uint32_t onEchoPacket(uint32_t packet_ptr_value);
+    void onEchoPacket(SimpleSerialProtocol::Packet* packet);
     void reply();
 
     class EchoPacket : public SimpleSerialProtocol::Packet {