Is there a mass storage class device driver for LPC17xx in the lpcopen 2 lib?
uint8_t Endpoint_Read_Stream_LE(uint8_t corenum, void *const Buffer, uint16_t Length, uint16_t *const BytesProcessed) { uint16_t i; if (endpointselected[corenum] == ENDPOINT_CONTROLEP) { if (usb_data_buffer_size[corenum] == 0) { return ENDPOINT_RWSTREAM_IncompleteTransfer; } } else if (usb_data_buffer_OUT_size[corenum] == 0) { return ENDPOINT_RWSTREAM_IncompleteTransfer; } for (i = 0; i < Length; i++) { #if defined(__LPC175X_6X__) || defined(__LPC177X_8X__) || defined(__LPC407X_8X__) if (endpointselected[corenum] != ENDPOINT_CONTROLEP) { [color=#c33]//HERE IS THE PROBLEM, WHILE LOOP NEVER ENDS while (usb_data_buffer_OUT_size[corenum] == 0);/* Current Fix for LPC17xx, havent checked for others */[/color] } #endif ((uint8_t *) Buffer) = Endpoint_Read_8(corenum); } return ENDPOINT_RWSTREAM_NoError; } |