AKM Development Platform. This is the D7.014 version.

Dependencies:   AK09970 AK099XX AK7401 AK7451 AK8963X AK9750 AK9752 AkmSensor BLE_API I2CNano MCP342x SerialNano SpiNano TCA9554A mbed nRF51822

Fork of AKDP by Masahiko Fukasawa

Revision:
0:c240899240e7
Child:
2:11a5873f8ec0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debug.h	Thu Apr 28 21:24:22 2016 +0000
@@ -0,0 +1,28 @@
+#ifndef __DEBUG_H__
+#define __DEBUG_H__
+
+#define DEBUG
+
+#ifdef DEBUG
+#define MSG(...) if(Debug::getSerial()!=NULL)Debug::getSerial()->printf(__VA_ARGS__)
+#else
+#define MSG(...) 
+#endif // DEBUG
+
+#include "mbed.h"
+#include "SerialNano.h"
+
+#ifdef DEBUG
+
+class Debug {
+public:
+    static void setSerial(SerialNano *p);
+    static SerialNano* getSerial();
+
+private:    
+    static SerialNano *serial;
+};
+
+#endif // DEBUG
+
+#endif // __DEBUG_H__