hiroya taura / Mbed 2 deprecated LAURUS_program

Dependencies:   ConfigFile SDFileSystem mbed

Fork of LAURUS_program by LAURUS

Committer:
ojan
Date:
Tue Jun 23 15:23:38 2015 +0000
Revision:
22:3caa2983bf1d
Parent:
4:45dc5590abc0
LAURUS_Program_v2.3.1

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 }