MPU6050のサンプルプログラム2
Dependencies: ConfigFile SDFileSystem mbed
Fork of LAURUS_program by
ErrorLogger.cpp@0:bc6f14fc60c7, 2015-05-15 (annotated)
- Committer:
- ojan
- Date:
- Fri May 15 17:24:32 2015 +0000
- Revision:
- 0:bc6f14fc60c7
- Child:
- 4:45dc5590abc0
Laurus integrated program (ver.0.0)
Who changed what in which revision?
User | Revision | Line number | New 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 | 0:bc6f14fc60c7 | 9 | debugPort->printf(msg); |
ojan | 0:bc6f14fc60c7 | 10 | abort(); |
ojan | 0:bc6f14fc60c7 | 11 | } |