From 22cedef95f671a4f769954ab7d0b30823bf446e8 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sat, 3 Jun 2017 18:36:17 +1000 Subject: stmhal/usbdev: For MSC implement SCSI SYNCHRONIZE_CACHE command. Currently just a dummy command that returns "success", but it's needed for some O/S's to correctly talk with the SCSI layer. --- stmhal/usbdev/class/inc/usbd_msc_scsi.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'stmhal/usbdev/class/inc/usbd_msc_scsi.h') diff --git a/stmhal/usbdev/class/inc/usbd_msc_scsi.h b/stmhal/usbdev/class/inc/usbd_msc_scsi.h index dea247bca..34f059ee5 100644 --- a/stmhal/usbdev/class/inc/usbd_msc_scsi.h +++ b/stmhal/usbdev/class/inc/usbd_msc_scsi.h @@ -55,6 +55,8 @@ #define SCSI_MODE_SENSE6 0x1A #define SCSI_MODE_SENSE10 0x5A #define SCSI_ALLOW_MEDIUM_REMOVAL 0x1E +#define SCSI_SYNCHRONIZE_CACHE10 0x35 +#define SCSI_SYNCHRONIZE_CACHE16 0x91 #define SCSI_READ6 0x08 #define SCSI_READ10 0x28 #define SCSI_READ12 0xA8 -- cgit v1.2.3