diff options
| author | hathach <[email protected]> | 2013-10-02 14:20:05 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-10-02 14:20:05 +0700 |
| commit | 6f9172c15f1c2447549f3004f849261aa580d4f9 (patch) | |
| tree | 1565fa8c0f570ec02e541805aa5e0cf0fa8eaf7e /tinyusb/class | |
| parent | 1263dbb1221fc550737e560c415857829e8ecfd1 (diff) | |
clean up warnings here and there
Diffstat (limited to 'tinyusb/class')
| -rw-r--r-- | tinyusb/class/cdc_host.h | 4 | ||||
| -rw-r--r-- | tinyusb/class/hid.h | 4 | ||||
| -rw-r--r-- | tinyusb/class/msc_host.c | 2 |
3 files changed, 4 insertions, 6 deletions
diff --git a/tinyusb/class/cdc_host.h b/tinyusb/class/cdc_host.h index f5add34d6..b723d5fbe 100644 --- a/tinyusb/class/cdc_host.h +++ b/tinyusb/class/cdc_host.h @@ -55,8 +55,8 @@ #endif typedef enum { - CDC_PIPE_ERROR, - CDC_PIPE_NOTIFICATION = 1, + CDC_PIPE_ERROR = 0, + CDC_PIPE_NOTIFICATION, CDC_PIPE_DATA_IN, CDC_PIPE_DATA_OUT }cdc_pipeid_t; diff --git a/tinyusb/class/hid.h b/tinyusb/class/hid.h index 7d8d1b047..6a983648b 100644 --- a/tinyusb/class/hid.h +++ b/tinyusb/class/hid.h @@ -36,7 +36,7 @@ */ /**************************************************************************/ -/** +/** * \addtogroup Group_ClassDriver Class Driver * @{ * \defgroup Group_HID Human Interface Device @@ -293,7 +293,7 @@ enum USB_HID_LOCAL_CODE #define HID_REPORT_DATA_3(data) , U32_TO_U8S_LE(data) #define HID_REPORT_ITEM(data, tag, type, size) \ - ((tag << 4) | (type << 2) | size) HID_REPORT_DATA_##size(data) + (((tag) << 4) | ((type) << 2) | (size)) HID_REPORT_DATA_##size(data) #define RI_TYPE_MAIN 0 #define RI_TYPE_GLOBAL 1 diff --git a/tinyusb/class/msc_host.c b/tinyusb/class/msc_host.c index 1b3e62dd4..a8ed60d02 100644 --- a/tinyusb/class/msc_host.c +++ b/tinyusb/class/msc_host.c @@ -401,8 +401,6 @@ tusb_error_t msch_open_subtask(uint8_t dev_addr, tusb_descriptor_interface_t con tusbh_msc_mounted_cb(dev_addr); OSAL_SUBTASK_END - - return TUSB_ERROR_NONE; } void msch_isr(pipe_handle_t pipe_hdl, tusb_event_t event, uint32_t xferred_bytes) |
