baseline build

Dependencies:   FastPWM mbed-os mbed

Committer:
jrhodes5150
Date:
Mon Jun 19 16:04:47 2017 +0000
Revision:
1:909f2393bc01
Parent:
0:8a420ac6394e
added fastPWM

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jrhodes5150 0:8a420ac6394e 1 #include "DebugPort.h"
jrhodes5150 0:8a420ac6394e 2
jrhodes5150 0:8a420ac6394e 3
jrhodes5150 0:8a420ac6394e 4 DebugPort::DebugPort(void) : debugport(USBTX, USBRX)
jrhodes5150 0:8a420ac6394e 5 {
jrhodes5150 0:8a420ac6394e 6 debugport.baud(115200);
jrhodes5150 0:8a420ac6394e 7 }
jrhodes5150 0:8a420ac6394e 8
jrhodes5150 0:8a420ac6394e 9
jrhodes5150 0:8a420ac6394e 10
jrhodes5150 0:8a420ac6394e 11
jrhodes5150 0:8a420ac6394e 12 void DebugPort::Print(string stringData,double data)
jrhodes5150 0:8a420ac6394e 13 {
jrhodes5150 0:8a420ac6394e 14 if(stringData == "")
jrhodes5150 0:8a420ac6394e 15 debugport.printf("\r\n");
jrhodes5150 0:8a420ac6394e 16 else
jrhodes5150 0:8a420ac6394e 17 debugport.printf("%s%lf\r\n",stringData,data);
jrhodes5150 0:8a420ac6394e 18 }
jrhodes5150 0:8a420ac6394e 19