![](/media/cache/profiles/f095cedd23b99f1696fc8caecbcf257e.jpg.50x50_q85.jpg)
USB CDC (serial) and USB MSC (strage) Composite Device. http://mbed.org/users/okini3939/notebook/USB_Device/
Dependencies: ChaNFSSD mbed ChaNFS
main.cpp
- Committer:
- okini3939
- Date:
- 2011-12-16
- Revision:
- 0:9b1d17d54055
- Child:
- 1:bb08a84162b7
File content as of revision 0:9b1d17d54055:
#include "mbed.h" #include "USBMSD_SD.h" Serial pc(USBTX, USBRX); USBMSD_SD usbmsd(p5, p6, p7, p8); int main() { while(1) { if (usbmsd.available()) { pc.putc(usbmsd.getc()); } if (pc.readable()) { usbmsd.putc(pc.getc()); } } }