QC Control software

Dependencies:   mbed

Fork of dgps by Colin Stearns

Committer:
dylanembed123
Date:
Tue Apr 01 15:52:08 2014 +0000
Revision:
7:c75d5e5e6bfc
Parent:
usb.cpp@6:434d20e99e49
Child:
12:e42985e3ea64
Update handler and adapter;

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 6:434d20e99e49 10 pc->baud(115200);//57600);
dylanembed123 6:434d20e99e49 11 }
dylanembed123 6:434d20e99e49 12 return *pc;
dylanembed123 6:434d20e99e49 13 }