diff options
| author | hathach <[email protected]> | 2014-03-13 18:43:52 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2014-03-13 18:43:52 +0700 |
| commit | 958512a5bd4a0826bd32df7d3740256504ab90d6 (patch) | |
| tree | f73b1440aee6a5ceddc92106a3295bfa3ddc5681 /tinyusb | |
| parent | 6fbca0ea8731b7f50a895ae5c62fc2bbedde2550 (diff) | |
clean up more warnings
Diffstat (limited to 'tinyusb')
| -rw-r--r-- | tinyusb/class/hid_host.c | 3 | ||||
| -rw-r--r-- | tinyusb/hal/hal_lpc175x_6x.c | 9 | ||||
| -rw-r--r-- | tinyusb/host/ohci/ohci.c | 2 |
3 files changed, 5 insertions, 9 deletions
diff --git a/tinyusb/class/hid_host.c b/tinyusb/class/hid_host.c index fb50a6e03..450695b15 100644 --- a/tinyusb/class/hid_host.c +++ b/tinyusb/class/hid_host.c @@ -207,6 +207,7 @@ tusb_error_t hidh_open_subtask(uint8_t dev_addr, tusb_descriptor_interface_t con 0, NULL ),
error
);
+ (void) error; // skip it set idle is failed
#if 0
//------------- Get Report Descriptor TODO HID parser -------------//
@@ -218,7 +219,7 @@ tusb_error_t hidh_open_subtask(uint8_t dev_addr, tusb_descriptor_interface_t con p_desc_hid->wReportLength, report_descriptor ),
error
);
- // if error in getting report descriptor --> treating like there is none
+ (void) error; // if error in getting report descriptor --> treating like there is none
}
#endif
diff --git a/tinyusb/hal/hal_lpc175x_6x.c b/tinyusb/hal/hal_lpc175x_6x.c index c3753a8fa..bb840a40d 100644 --- a/tinyusb/hal/hal_lpc175x_6x.c +++ b/tinyusb/hal/hal_lpc175x_6x.c @@ -36,16 +36,11 @@ */
/**************************************************************************/
-#include "tusb_option.h"
-
-#if TUSB_CFG_MCU == MCU_LPC175X_6X
-
-//--------------------------------------------------------------------+
-// INCLUDE
-//--------------------------------------------------------------------+
#include "common/common.h"
#include "hal.h"
+#if TUSB_CFG_MCU == MCU_LPC175X_6X
+
//--------------------------------------------------------------------+
// IMPLEMENTATION
//--------------------------------------------------------------------+
diff --git a/tinyusb/host/ohci/ohci.c b/tinyusb/host/ohci/ohci.c index 197f3fb02..63b30e0ac 100644 --- a/tinyusb/host/ohci/ohci.c +++ b/tinyusb/host/ohci/ohci.c @@ -609,7 +609,7 @@ static void done_queue_isr(uint8_t hostid) {
// TODO check if td_head is iso td
//------------- Non ISO transfer -------------//
- ohci_gtd_t * const p_qtd = (ohci_gtd_t * const) td_head;
+ ohci_gtd_t * const p_qtd = (ohci_gtd_t *) td_head;
tusb_event_t const event = (p_qtd->condition_code == OHCI_CCODE_NO_ERROR) ? TUSB_EVENT_XFER_COMPLETE :
(p_qtd->condition_code == OHCI_CCODE_STALL) ? TUSB_EVENT_XFER_STALLED : TUSB_EVENT_XFER_ERROR;
|
