USB Host Library for Sprint Dongles
Fork of USBHostWANDongleSprint_bleedingedge by
Legacy Warning
This is an mbed 2 libary. To learn more about mbed OS 5, visit the docs.
Diff: USBHost/USBHost.cpp
- Revision:
- 3:9ec92dd8a8cb
- Parent:
- 2:34c976009b70
--- a/USBHost/USBHost.cpp Mon Sep 24 09:08:49 2012 +0000 +++ b/USBHost/USBHost.cpp Wed Sep 26 07:07:47 2012 +0000 @@ -16,7 +16,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#define __DEBUG__ 4 //WARN: ENABLING DEBUGGING HERE WILL PRINTF IN IRQS!! UNEXPECTED BEHAVIOUR MAY RESULT... +#define __DEBUG__ 0 //WARN: ENABLING DEBUGGING HERE WILL PRINTF IN IRQS!! UNEXPECTED BEHAVIOUR MAY RESULT... #ifndef __MODULE__ #define __MODULE__ "USBHost.cpp" #endif @@ -28,7 +28,7 @@ #include "rtos.h" -#define NB_MAX_INTF 2 +#define NB_MAX_INTF 1 USBHost * USBHost::instHost = NULL; @@ -156,7 +156,7 @@ * Call in ISR when a device has been connected */ void USBHost::deviceConnected(int hub, int port, bool lowSpeed) { - + WARN("Device connected"); for (int i = 0; i < MAX_DEVICE_NB; i++) { if (!deviceInUse[i]) { deviceInUse[i] = true;