pub

Fork of CANnucleo by Zoltan Hudak

Revision:
23:ea766d08c9db
Parent:
21:d51e1617975f
Child:
24:c5d348e65e24
--- a/CANnucleo.h	Sat Jul 23 08:28:31 2016 +0000
+++ b/CANnucleo.h	Wed Aug 10 18:21:09 2016 +0000
@@ -16,20 +16,15 @@
  * Modified by Zoltan Hudak    <hudakz@inbox.com>
  *
  */
-#ifndef CAN_H
-#define CAN_H
+#ifndef CAN_NUCLEO_H
+#define CAN_NUCLEO_H
 
 #include "platform.h"
-
-#define DEVICE_CAN 1
-
-#if DEVICE_CAN
-
 #include "can_api.h"
 #include "can_helper.h"
 #include "FunctionPointer.h"
     
-namespace mbed
+namespace CANnucleo
 {
     
 /** CANMessage class
@@ -303,14 +298,12 @@
     static void _irq_handler(uint32_t id, CanIrqType type);
 
 protected:
-    FunctionPointer _irq[9];
+    mbed::FunctionPointer _irq[9];
 };
 
-} // namespace mbed
+} // namespace CANnucleo
 
-#endif
-
-#endif    // MBED_CAN_H
+#endif    // CAN_NUCLEO_H