summaryrefslogtreecommitdiff
path: root/tinyusb/class
diff options
context:
space:
mode:
authorhathach <[email protected]>2014-02-28 18:42:33 +0700
committerhathach <[email protected]>2014-02-28 18:42:33 +0700
commit5f8f046eaa10f434b9bbb7f7cd0ed0f9dad24952 (patch)
tree370244012ea369323f0cf2533e02a3e7c80ec288 /tinyusb/class
parentda6b2fbef85118ec8a076f297492683dbbbe5684 (diff)
refractor remove tusbh_msc_is_failed
increase usbh enum task from 150 to 200 due to stack overflow when mounting msc device added task for msc host freeRTOS with stack = 300 (still cannot execute copy command)
Diffstat (limited to 'tinyusb/class')
-rw-r--r--tinyusb/class/msc_host.c8
-rw-r--r--tinyusb/class/msc_host.h3
2 files changed, 0 insertions, 11 deletions
diff --git a/tinyusb/class/msc_host.c b/tinyusb/class/msc_host.c
index 009c998a0..ac62e5d9a 100644
--- a/tinyusb/class/msc_host.c
+++ b/tinyusb/class/msc_host.c
@@ -80,14 +80,6 @@ bool tusbh_msc_is_busy(uint8_t dev_addr)
hcd_pipe_is_busy(msch_data[dev_addr-1].bulk_in);
}
-bool tusbh_msc_is_failed(uint8_t dev_addr)
-{
- return msch_data[dev_addr-1].is_initialized &&
- hcd_pipe_is_error(msch_data[dev_addr-1].bulk_in);
-}
-
-// TODO tusbh_msc_is_stalled
-
uint8_t const* tusbh_msc_get_vendor_name(uint8_t dev_addr)
{
return msch_data[dev_addr-1].is_initialized ? msch_data[dev_addr-1].vendor_id : NULL;
diff --git a/tinyusb/class/msc_host.h b/tinyusb/class/msc_host.h
index dfbf323a8..3dcf18704 100644
--- a/tinyusb/class/msc_host.h
+++ b/tinyusb/class/msc_host.h
@@ -72,9 +72,6 @@ bool tusbh_msc_is_mounted(uint8_t dev_addr) ATTR_PURE ATTR_WARN_UNUSED_
*/
bool tusbh_msc_is_busy(uint8_t dev_addr) ATTR_PURE ATTR_WARN_UNUSED_RESULT;
-// TODO refractor
-bool tusbh_msc_is_failed(uint8_t dev_addr) ATTR_PURE ATTR_WARN_UNUSED_RESULT;
-
/** \brief Get SCSI vendor's name of MassStorage device
* \param[in] dev_addr device address
* \return pointer to vendor's name or NULL if specified device does not support MassStorage