Audio usb
Fork of MSCFileSystem by
Diff: USBHostLite/usbhost_lpc17xx.cpp
- Revision:
- 8:8071d6c9aeb0
- Parent:
- 4:dcc326e4d358
--- a/USBHostLite/usbhost_lpc17xx.cpp Mon Jul 23 09:59:06 2012 +0000 +++ b/USBHostLite/usbhost_lpc17xx.cpp Thu Apr 03 01:25:16 2014 +0000 @@ -123,7 +123,7 @@ */ void Host_Init (void) { - PRINT_Log("In Host_Init\n"); + PRINT_Log("In Host_Init\n\r"); NVIC_DisableIRQ(USB_IRQn); /* Disable the USB interrupt source */ // turn on power for USB @@ -161,7 +161,7 @@ LPC_PINCON->PINSEL1 &= ~((3<<26) | (3<<28)); LPC_PINCON->PINSEL1 |= ((1<<26)|(1<<28)); // 0x14000000 - PRINT_Log("Initializing Host Stack\n"); + PRINT_Log("Initializing Host Stack\n\r"); Hcca = (volatile HCCA *)(HostBuf+0x000); TDHead = (volatile HCTD *)(HostBuf+0x100); @@ -203,7 +203,7 @@ NVIC_SetPriority(USB_IRQn, 0); /* highest priority */ /* Enable the USB Interrupt */ NVIC_EnableIRQ(USB_IRQn); - PRINT_Log("Host Initialized\n"); + PRINT_Log("Host Initialized\n\r"); } /* @@ -254,7 +254,7 @@ gUSBConnected = 1; } else - PRINT_Log("Spurious status change (connected)?\n"); + PRINT_Log("Spurious status change (connected)?\n\r"); } else { if (gUSBConnected) { LPC_USB->HcInterruptEnable = 0; // why do we get multiple disc. rupts??? @@ -262,7 +262,7 @@ gUSBConnected = 0; } else - PRINT_Log("Spurious status change (disconnected)?\n"); + PRINT_Log("Spurious status change (disconnected)?\n\r"); } } LPC_USB->HcRhPortStatus1 = OR_RH_PORT_CSC; @@ -368,7 +368,7 @@ { USB_INT32S rc; - PRINT_Log("Connect a Mass Storage device\n"); + PRINT_Log("Connect a Mass Storage device\n\r"); while (!HOST_RhscIntr) __WFI(); Host_DelayMS(100); /* USB 2.0 spec says atleast 50ms delay beore port reset */