Colin Stearns
/
qcControl
QC Control software
Fork of dgps by
adapt/usb.cpp@66:5d43988d100c, 2014-05-05 (annotated)
- Committer:
- dylanembed123
- Date:
- Mon May 05 13:20:35 2014 +0000
- Revision:
- 66:5d43988d100c
- Parent:
- 12:e42985e3ea64
Final Project;
Who changed what in which revision?
User | Revision | Line number | New 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 | } |