summaryrefslogtreecommitdiff
path: root/tinyusb
diff options
context:
space:
mode:
authorhathach <[email protected]>2014-03-13 18:11:59 +0700
committerhathach <[email protected]>2014-03-13 18:11:59 +0700
commitf1692c93ac7f9990490223cf924d84e1cbdcbeb6 (patch)
treec125767ad7d26476707049784ff17324ef4f9ece /tinyusb
parent8fbafc460cceb6943179c0b0613d619bb9511b3c (diff)
fix some warnings
Diffstat (limited to 'tinyusb')
-rw-r--r--tinyusb/class/msc_host.c2
-rw-r--r--tinyusb/host/ehci/ehci.c16
-rw-r--r--tinyusb/host/hub.h1
-rw-r--r--tinyusb/osal/osal_none.h6
4 files changed, 2 insertions, 23 deletions
diff --git a/tinyusb/class/msc_host.c b/tinyusb/class/msc_host.c
index 1380b1e03..e81bed258 100644
--- a/tinyusb/class/msc_host.c
+++ b/tinyusb/class/msc_host.c
@@ -377,7 +377,7 @@ tusb_error_t msch_open_subtask(uint8_t dev_addr, tusb_descriptor_interface_t con
SUBTASK_ASSERT_STATUS(error);
//------------- SCSI Request Sense -------------//
- tusbh_msc_request_sense(dev_addr, 0, msch_buffer);
+ (void) tusbh_msc_request_sense(dev_addr, 0, msch_buffer);
osal_semaphore_wait(msch_sem_hdl, SCSI_XFER_TIMEOUT, &error);
SUBTASK_ASSERT_STATUS(error);
diff --git a/tinyusb/host/ehci/ehci.c b/tinyusb/host/ehci/ehci.c
index 9d606e183..c20112d73 100644
--- a/tinyusb/host/ehci/ehci.c
+++ b/tinyusb/host/ehci/ehci.c
@@ -123,7 +123,7 @@ static ehci_link_t* list_find_previous_item(ehci_link_t* p_head, ehci_link_t* p
static tusb_error_t list_remove_qhd(ehci_link_t* p_head, ehci_link_t* p_remove);
static tusb_error_t hcd_controller_init(uint8_t hostid) ATTR_WARN_UNUSED_RESULT;
-static tusb_error_t hcd_controller_stop(uint8_t hostid) ATTR_WARN_UNUSED_RESULT;
+static tusb_error_t hcd_controller_stop(uint8_t hostid) ATTR_WARN_UNUSED_RESULT ATTR_UNUSED;
//--------------------------------------------------------------------+
// USBH-HCD API
@@ -278,20 +278,6 @@ static tusb_error_t hcd_controller_stop(uint8_t hostid)
return timeout_expired(&timeout) ? TUSB_ERROR_OSAL_TIMEOUT : TUSB_ERROR_NONE;
}
-//tusb_error_t hcd_controller_reset(uint8_t hostid)
-//{
-// ehci_registers_t* const regs = get_operational_register(hostid);
-// timeout_timer_t timeout;
-//
-//// NXP chip powered with non-host mode --> sts bit is not correctly reflected
-// regs->usb_cmd_bit.reset = 1;
-//
-// timeout_set(&timeout, 2); // should not take longer the time to stop controller
-// while( regs->usb_cmd_bit.reset && !timeout_expired(&timeout)) {}
-//
-// return timeout_expired(&timeout) ? TUSB_ERROR_OSAL_TIMEOUT : TUSB_ERROR_NONE;
-//}
-
//--------------------------------------------------------------------+
// CONTROL PIPE API
//--------------------------------------------------------------------+
diff --git a/tinyusb/host/hub.h b/tinyusb/host/hub.h
index b6cdd599f..956dee505 100644
--- a/tinyusb/host/hub.h
+++ b/tinyusb/host/hub.h
@@ -200,7 +200,6 @@ tusb_error_t hub_open_subtask(uint8_t dev_addr, tusb_descriptor_interface_t cons
void hub_isr(pipe_handle_t pipe_hdl, tusb_event_t event, uint32_t xferred_bytes);
void hub_close(uint8_t dev_addr);
-tusb_error_t hub_status_pipe_queue(uint8_t dev_addr);
#endif
#ifdef __cplusplus
diff --git a/tinyusb/osal/osal_none.h b/tinyusb/osal/osal_none.h
index 300233f42..3cb869bd1 100644
--- a/tinyusb/osal/osal_none.h
+++ b/tinyusb/osal/osal_none.h
@@ -36,12 +36,6 @@
*/
/**************************************************************************/
-/** \file
- * \brief TBD
- *
- * \note TBD
- */
-
/** \ingroup TBD
* \defgroup TBD
* \brief TBD