Colin Stearns
/
qcControl
QC Control software
Fork of dgps by
Diff: usb.cpp
- Revision:
- 6:434d20e99e49
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/usb.cpp Fri Feb 21 15:15:25 2014 +0000 @@ -0,0 +1,13 @@ + +#include "usb.h" + +Serial* USB::pc=NULL; + +Serial& USB::getSerial(){ + if(pc==NULL){ + // Init Serial USB + pc=new Serial(USBTX,USBRX); + pc->baud(115200);//57600); + } + return *pc; +} \ No newline at end of file