From 63add701391ae30cd43bb2a06d87df3dda5803b8 Mon Sep 17 00:00:00 2001 From: hathach Date: Thu, 9 May 2013 12:49:52 +0700 Subject: test clean up --- tinyusb/class/hid.h | 4 ++-- tinyusb/class/msc.h | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) (limited to 'tinyusb/class') diff --git a/tinyusb/class/hid.h b/tinyusb/class/hid.h index c526ab2b4..cf70f66aa 100644 --- a/tinyusb/class/hid.h +++ b/tinyusb/class/hid.h @@ -46,12 +46,12 @@ #ifndef _TUSB_HID_H_ #define _TUSB_HID_H_ +#include "common/common.h" + #ifdef __cplusplus extern "C" { #endif -#include "common/common.h" - enum { HID_SUBCLASS_NONE = 0, HID_SUBCLASS_BOOT = 1 diff --git a/tinyusb/class/msc.h b/tinyusb/class/msc.h index ad9f46c4b..53e2e93df 100644 --- a/tinyusb/class/msc.h +++ b/tinyusb/class/msc.h @@ -52,6 +52,26 @@ extern "C" { #endif +//--------------------------------------------------------------------+ +// USB Class Constant +//--------------------------------------------------------------------+ +enum { + MSC_SUBCLASS_RBC = 1 , + MSC_SUBCLASS_SFF_MMC , + MSC_SUBCLASS_QIC , + MSC_SUBCLASS_UFI , + MSC_SUBCLASS_SFF , + MSC_SUBCLASS_SCSI +}; + +// CBI only approved to use with full-speed floopy disk & should not used with highspeed or device other than floopy +enum { + MSC_PROTOCOL_CBI = 0, + MSC_PROTOCOL_CBI_NO_INTERRUPT = 1, + MSC_PROTOCOL_BOT = 0x50 +}; + + //--------------------------------------------------------------------+ // SCSI Primary Command (SPC-4) //--------------------------------------------------------------------+ -- cgit v1.3.1