USB MSD. Cosmetical improvements.
This commit is contained in:
parent
9b1c3b0122
commit
52f82fb9cc
|
@ -34,7 +34,6 @@
|
|||
/*===========================================================================*/
|
||||
|
||||
#define USB_MSD_DATA_EP 0x01
|
||||
#define USB_MSD_EP_SIZE 0x40
|
||||
|
||||
/*===========================================================================*/
|
||||
/* Driver pre-compile time settings. */
|
||||
|
|
|
@ -214,6 +214,7 @@ static void send_csw(USBMassStorageDriver *msdp, uint8_t status,
|
|||
*/
|
||||
static THD_FUNCTION(usb_msd_worker, arg) {
|
||||
USBMassStorageDriver *msdp = arg;
|
||||
chRegSetThreadName("usb_msd_worker");
|
||||
|
||||
while(! chThdShouldTerminateX()) {
|
||||
const msg_t status = usbReceive(msdp->usbp, USB_MSD_DATA_EP,
|
||||
|
|
|
@ -20,6 +20,11 @@
|
|||
#include "hal_usb_msd.h"
|
||||
#include "usbcfg.h"
|
||||
|
||||
/*
|
||||
* must be 64 for full speed and 512 for high speed
|
||||
*/
|
||||
#define USB_MSD_EP_SIZE 64U
|
||||
|
||||
/*
|
||||
* USB Device Descriptor.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue