disable unnecessary prints
Revision 1:1538f5588c56, committed 2016-01-12
- Comitter:
- legwinskij
- Date:
- Tue Jan 12 21:35:20 2016 +0000
- Parent:
- 0:e042bdf9c219
- Commit message:
- Changed delay before port reset, some USB flash disks takes longer to enumerate
Changed in this revision
usbhost_lpc17xx.cpp | Show annotated file Show diff for this revision Revisions of this file |
usbhost_lpc17xx.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/usbhost_lpc17xx.cpp Thu Oct 22 17:16:11 2015 +0000 +++ b/usbhost_lpc17xx.cpp Tue Jan 12 21:35:20 2016 +0000 @@ -371,7 +371,7 @@ PRINT_Log("Connect a Mass Storage device\r\n"); while (!HOST_RhscIntr) __WFI(); - Host_DelayMS(100); /* USB 2.0 spec says atleast 50ms delay beore port reset */ + Host_DelayMS(2000); /* USB 2.0 spec says atleast 50ms delay beore port reset */ LPC_USB->HcRhPortStatus1 = OR_RH_PORT_PRS; // Initiate port reset while (LPC_USB->HcRhPortStatus1 & OR_RH_PORT_PRS) __WFI(); // Wait for port reset to complete...
--- a/usbhost_lpc17xx.h Thu Oct 22 17:16:11 2015 +0000 +++ b/usbhost_lpc17xx.h Tue Jan 12 21:35:20 2016 +0000 @@ -33,7 +33,7 @@ ************************************************************************************************************** */ -#define PRINT_ENABLE 1 +#define PRINT_ENABLE 0 #if PRINT_ENABLE #define PRINT_Log(...) printf(__VA_ARGS__)