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

Committer:
masahikofukasawa
Date:
Wed May 03 18:31:33 2017 +0000
Branch:
multi_sensor_test
Revision:
40:24065d634473
Parent:
39:8222b59a822e
re-publish for Rev D7.014.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
masahikofukasawa 0:c240899240e7 1 #ifndef __DEBUG_H__
masahikofukasawa 0:c240899240e7 2 #define __DEBUG_H__
masahikofukasawa 0:c240899240e7 3
masahikofukasawa 39:8222b59a822e 4 //#define DEBUG
masahikofukasawa 0:c240899240e7 5
masahikofukasawa 0:c240899240e7 6 #ifdef DEBUG
masahikofukasawa 0:c240899240e7 7 #define MSG(...) if(Debug::getSerial()!=NULL)Debug::getSerial()->printf(__VA_ARGS__)
masahikofukasawa 0:c240899240e7 8 #else
masahikofukasawa 0:c240899240e7 9 #define MSG(...)
masahikofukasawa 0:c240899240e7 10 #endif // DEBUG
masahikofukasawa 0:c240899240e7 11
masahikofukasawa 0:c240899240e7 12 #include "mbed.h"
masahikofukasawa 0:c240899240e7 13 #include "SerialNano.h"
masahikofukasawa 0:c240899240e7 14
masahikofukasawa 0:c240899240e7 15 #ifdef DEBUG
masahikofukasawa 0:c240899240e7 16
masahikofukasawa 0:c240899240e7 17 class Debug {
masahikofukasawa 0:c240899240e7 18 public:
masahikofukasawa 0:c240899240e7 19 static void setSerial(SerialNano *p);
masahikofukasawa 0:c240899240e7 20 static SerialNano* getSerial();
masahikofukasawa 0:c240899240e7 21
masahikofukasawa 0:c240899240e7 22 private:
masahikofukasawa 0:c240899240e7 23 static SerialNano *serial;
masahikofukasawa 0:c240899240e7 24 };
masahikofukasawa 0:c240899240e7 25
masahikofukasawa 0:c240899240e7 26 #endif // DEBUG
masahikofukasawa 0:c240899240e7 27
masahikofukasawa 0:c240899240e7 28 #endif // __DEBUG_H__