QC Control software

Dependencies:   mbed

Fork of dgps by Colin Stearns

Committer:
dylanembed123
Date:
Sat Apr 05 22:27:18 2014 +0000
Revision:
12:e42985e3ea64
Parent:
7:c75d5e5e6bfc
Update packet.h (interface to other c++ code).

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dylanembed123 6:434d20e99e49 1
dylanembed123 6:434d20e99e49 2 #include "usb.h"
dylanembed123 6:434d20e99e49 3
dylanembed123 6:434d20e99e49 4 Serial* USB::pc=NULL;
dylanembed123 6:434d20e99e49 5
dylanembed123 6:434d20e99e49 6 Serial& USB::getSerial(){
dylanembed123 6:434d20e99e49 7 if(pc==NULL){
dylanembed123 6:434d20e99e49 8 // Init Serial USB
dylanembed123 6:434d20e99e49 9 pc=new Serial(USBTX,USBRX);
dylanembed123 12:e42985e3ea64 10 pc->baud(USBBAUD);
dylanembed123 6:434d20e99e49 11 }
dylanembed123 6:434d20e99e49 12 return *pc;
dylanembed123 6:434d20e99e49 13 }