summaryrefslogtreecommitdiff
path: root/src/class/msc
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-04-19 13:16:06 +0700
committerhathach <[email protected]>2019-04-19 13:16:06 +0700
commitff8fe28c985f3059bbd0633a0f778dd6b9f5a9d1 (patch)
treecc78edf690b4b6e97577db800267f75b47f214d5 /src/class/msc
parent6796026476e14fc82402cdbd2dc4418f51240ae5 (diff)
move interface descriptor template to usbd.h, update exmaple
Diffstat (limited to 'src/class/msc')
-rw-r--r--src/class/msc/msc_device.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/class/msc/msc_device.h b/src/class/msc/msc_device.h
index b6cef78b6..3ed223509 100644
--- a/src/class/msc/msc_device.h
+++ b/src/class/msc/msc_device.h
@@ -146,23 +146,6 @@ ATTR_WEAK void tud_msc_scsi_complete_cb(uint8_t lun, uint8_t const scsi_cmd[16])
// Hook to make a mass storage device read-only. TODO remove
ATTR_WEAK bool tud_msc_is_writable_cb(uint8_t lun);
-//--------------------------------------------------------------------+
-// Interface Descriptor Template
-//--------------------------------------------------------------------+
-
-// Length of template descriptor: 23 bytes
-#define TUD_MSC_DESC_LEN (9 + 7 + 7)
-
-// Interface Number, EP Out & EP In address
-#define TUD_MSC_DESCRIPTOR(_itfnum, _stridx, _epout, _epin, _epsize) \
- /* Interface */\
- 9, TUSB_DESC_INTERFACE, _itfnum, 0, 2, TUSB_CLASS_MSC, MSC_SUBCLASS_SCSI, MSC_PROTOCOL_BOT, _stridx,\
- /* Endpoint Out */\
- 7, TUSB_DESC_ENDPOINT, _epout, TUSB_XFER_BULK, U16_TO_U8S_LE(_epsize), 0,\
- /* Endpoint In */\
- 7, TUSB_DESC_ENDPOINT, _epin, TUSB_XFER_BULK, U16_TO_U8S_LE(_epsize), 0
-
-
/** @} */
/** @} */