USB MSD. Cosmetical improvements.

This commit is contained in:
barthess 2017-01-04 10:17:04 +03:00
parent 9b1c3b0122
commit 52f82fb9cc
3 changed files with 6 additions and 1 deletions

View File

@ -34,7 +34,6 @@
/*===========================================================================*/
#define USB_MSD_DATA_EP 0x01
#define USB_MSD_EP_SIZE 0x40
/*===========================================================================*/
/* Driver pre-compile time settings. */

View File

@ -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,

View File

@ -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.
*/