Colin Stearns
/
qcControl
QC Control software
Fork of dgps by
adapt/usb.h@66:5d43988d100c, 2014-05-05 (annotated)
- Committer:
- dylanembed123
- Date:
- Mon May 05 13:20:35 2014 +0000
- Revision:
- 66:5d43988d100c
- Parent:
- 14:6be57da62283
Final Project;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dylanembed123 | 6:434d20e99e49 | 1 | #ifndef _USB_H_ |
dylanembed123 | 6:434d20e99e49 | 2 | #define _USB_H_ |
dylanembed123 | 6:434d20e99e49 | 3 | #include "mbed.h" |
dylanembed123 | 12:e42985e3ea64 | 4 | |
dylanembed123 | 12:e42985e3ea64 | 5 | /// Define Baud |
dylanembed123 | 12:e42985e3ea64 | 6 | #define USBBAUD 115200 |
dylanembed123 | 14:6be57da62283 | 7 | //115200 |
dylanembed123 | 12:e42985e3ea64 | 8 | |
dylanembed123 | 6:434d20e99e49 | 9 | class USB{ |
dylanembed123 | 6:434d20e99e49 | 10 | private: |
dylanembed123 | 6:434d20e99e49 | 11 | static Serial* pc; |
dylanembed123 | 6:434d20e99e49 | 12 | public: |
dylanembed123 | 6:434d20e99e49 | 13 | /// \brief Call this function to get a hold of the serial for USB. |
dylanembed123 | 6:434d20e99e49 | 14 | static Serial& getSerial(); |
dylanembed123 | 6:434d20e99e49 | 15 | }; |
dylanembed123 | 6:434d20e99e49 | 16 | #endif |