Demonstration of CPP error in CAN attach - fixed

Revision:
0:cd47a82f15aa
Child:
1:acbf76e0e272
diff -r 000000000000 -r cd47a82f15aa CAN_stack.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CAN_stack.cpp	Wed Jul 27 16:18:10 2011 +0000
@@ -0,0 +1,24 @@
+#include "CAN_stack.h"
+
+
+CAN_stack::CAN_stack(CAN* can_int)
+{
+    adapter=can_int;
+    adapter->attach(this, &CAN_stack::can_callback);
+}
+
+void CAN_stack::poll (void)
+{
+    /*
+        pop fifo and do stuff        
+    */ 
+}
+
+void CAN_stack::can_callback ( void )
+{
+    CANMessage msg;
+    adapter->read(msg);
+    /*
+        push msg to fifo etc
+    */
+}
\ No newline at end of file