Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add USB MSC + MSC/CDC Composite Class #1088

Open
wants to merge 37 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
26f5806
initial commit of new cdc_msc and updated msc
May 29, 2020
db11e1b
added endpoint configuration
May 29, 2020
1c247ed
added endpoint define changes
May 29, 2020
0b9e38e
added default msc interface
May 29, 2020
162ade3
fixed cdc handle nad renamed cdc msc flag
May 29, 2020
8d7e9d8
added usb class
May 29, 2020
4b489ef
add new include dirs
May 30, 2020
a144bca
formatting changes, improved usbd_ep_conf and now compiles in marlin
Jun 1, 2020
6717196
fixed bug in descriptor, small changes to USB class
Jun 1, 2020
6f3ebfc
fixed duplicate endpoint definition and somewhat fixed endpoint confi…
Jun 2, 2020
ccef556
fixed styling and changed dummy sd usb so it is always not ready
Jun 2, 2020
ff6cecf
fixed small type and more formatting
Jun 2, 2020
da5c702
added ifdef for USB.c
Jun 2, 2020
ffd635d
fixed bug in ST MSC SCSI library
Jun 2, 2020
7676e07
fixed formatting
Jun 2, 2020
3761125
introduced usb msc abstract class
Jun 3, 2020
6f00830
changes to formatting
Jun 3, 2020
f578d6c
more formatting changes
Jun 3, 2020
805113d
and more formatting changes
Jun 3, 2020
5df8d9c
small bugfixes
Jun 3, 2020
5b3e972
added back early usb initialisation and fixed write protection bug in…
Jun 3, 2020
77d673b
fixed hs/fs/other speed interface descriptors for cdc msc
Jun 3, 2020
3f3783e
small changes to ep conf
Jun 3, 2020
3c4d73d
fixed bug where usb device library relies on pdev->pClassData to dete…
Jun 4, 2020
f0e3993
update msc and cdc classes
Jun 4, 2020
a7fd6e2
fixed ep addresses
Jun 4, 2020
df73d28
fixed formatting
Jun 4, 2020
760d8e3
added back cdc clear buffer
Jun 4, 2020
f7dbf85
remove reference to userdata
Jun 4, 2020
6d0023f
fixed pointer error and warning
Jun 4, 2020
4d0f562
changes to cdc msc interface definitions
Jun 4, 2020
b29c3ea
remove SOF from MSC+CDC
Jun 4, 2020
2207a41
further changes during merging
Jun 4, 2020
a341011
set cdc usb handle to usb handle
Jun 4, 2020
8709e8f
refactored cdc msc descriptor and fixed for windowsn
Jun 7, 2020
def0867
fixed formatting
Jun 7, 2020
4447803
added extra board configurations
Jun 7, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixed bug in ST MSC SCSI library
  • Loading branch information
Rudi Horn committed Jun 4, 2020
commit ffd635d4103fe48c53d918d7018acceda38012d5
24 changes: 12 additions & 12 deletions cores/arduino/stm32/usb/msc/usbd_msc_scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,50 +66,50 @@ int8_t SCSI_ProcessCmd(USBD_HandleTypeDef *pdev, uint8_t lun, uint8_t *cmd)
{
switch (cmd[0]) {
case SCSI_TEST_UNIT_READY:
SCSI_TestUnitReady(pdev, lun, cmd);
return SCSI_TestUnitReady(pdev, lun, cmd);
break;

case SCSI_REQUEST_SENSE:
SCSI_RequestSense(pdev, lun, cmd);
return SCSI_RequestSense(pdev, lun, cmd);
break;
case SCSI_INQUIRY:
SCSI_Inquiry(pdev, lun, cmd);
return SCSI_Inquiry(pdev, lun, cmd);
break;

case SCSI_START_STOP_UNIT:
SCSI_StartStopUnit(pdev, lun, cmd);
return SCSI_StartStopUnit(pdev, lun, cmd);
break;

case SCSI_ALLOW_MEDIUM_REMOVAL:
SCSI_StartStopUnit(pdev, lun, cmd);
return SCSI_StartStopUnit(pdev, lun, cmd);
break;

case SCSI_MODE_SENSE6:
SCSI_ModeSense6(pdev, lun, cmd);
return SCSI_ModeSense6(pdev, lun, cmd);
break;

case SCSI_MODE_SENSE10:
SCSI_ModeSense10(pdev, lun, cmd);
return SCSI_ModeSense10(pdev, lun, cmd);
break;

case SCSI_READ_FORMAT_CAPACITIES:
SCSI_ReadFormatCapacity(pdev, lun, cmd);
return SCSI_ReadFormatCapacity(pdev, lun, cmd);
break;

case SCSI_READ_CAPACITY10:
SCSI_ReadCapacity10(pdev, lun, cmd);
return SCSI_ReadCapacity10(pdev, lun, cmd);
break;

case SCSI_READ10:
SCSI_Read10(pdev, lun, cmd);
return SCSI_Read10(pdev, lun, cmd);
break;

case SCSI_WRITE10:
SCSI_Write10(pdev, lun, cmd);
return SCSI_Write10(pdev, lun, cmd);
break;

case SCSI_VERIFY10:
SCSI_Verify10(pdev, lun, cmd);
return SCSI_Verify10(pdev, lun, cmd);
break;

default:
Expand Down