USB host library, support isochronous,bulk,interrupt and control.

Dependents:   BaseUsbHost_example BaseJpegDecode_example SimpleJpegDecode_example

Import programBaseUsbHost_example

BaseUsbHost example program

Revision:
1:3b7bc4f87a61
Parent:
0:b7d6879637a8
Child:
2:fe1e62051d88
--- a/BaseUsbHostBlkEp.cpp	Tue Dec 04 13:29:41 2012 +0000
+++ b/BaseUsbHostBlkEp.cpp	Wed Dec 05 13:23:06 2012 +0000
@@ -1,4 +1,4 @@
-// BaseUsbHostBlkEp.cpp 2012/12/3
+// BaseUsbHostBlkEp.cpp 2012/12/5
 #include "mbed.h"
 #include "rtos.h"
 #include "BaseUsbHost.h"
@@ -24,7 +24,7 @@
     LPC_USB->HcControl |= OR_CONTROL_BLE;
 }
 
-int BulkEp::read(uint8_t* buf, int len, int millisec)
+int BulkEp::bulkReceive(uint8_t* buf, int len, int millisec)
 {
     HCTD* data_td = m_pED->TailTd;
     TEST_ASSERT(data_td);
@@ -55,7 +55,7 @@
     return USB_ERROR;
 }
 
-int BulkEp::write(const uint8_t* buf, int len, int millisec)
+int BulkEp::bulkSend(const uint8_t* buf, int len, int millisec)
 {
     HCTD* data_td = m_pED->TailTd;
     TEST_ASSERT(data_td);