MPU6050のサンプルプログラム2

Dependencies:   ConfigFile SDFileSystem mbed

Fork of LAURUS_program by LAURUS

Committer:
ojan
Date:
Thu Jun 11 15:43:07 2015 +0000
Revision:
4:45dc5590abc0
Parent:
0:bc6f14fc60c7
add flow control

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ojan 0:bc6f14fc60c7 1 #include "ErrorLogger.h"
ojan 0:bc6f14fc60c7 2
ojan 0:bc6f14fc60c7 3 void InitLogger(Serial* dp) {
ojan 0:bc6f14fc60c7 4 if(debugPort == dp) return;
ojan 0:bc6f14fc60c7 5 debugPort = dp;
ojan 0:bc6f14fc60c7 6 }
ojan 0:bc6f14fc60c7 7
ojan 0:bc6f14fc60c7 8 void AbortWithMsg(const char* msg) {
ojan 4:45dc5590abc0 9 while(!debugPort->writeable());
ojan 0:bc6f14fc60c7 10 debugPort->printf(msg);
ojan 0:bc6f14fc60c7 11 abort();
ojan 0:bc6f14fc60c7 12 }