diff options
| author | hathach <[email protected]> | 2019-03-29 01:34:53 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-03-29 01:34:53 +0700 |
| commit | 0bdd4bd55002c4563154214a4d57581433cae668 (patch) | |
| tree | 7425d94bf510cc944f93fa21959abb344d4f505f /src/class | |
| parent | 8fb9fbb0b19de3422645e65fbd422c86cb548c62 (diff) | |
added Suspend and Resume event for nrf5x port
also rename DCD_EVENT_SUSPENDED to DCD_EVENT_SUSPEND
Diffstat (limited to 'src/class')
| -rw-r--r-- | src/class/hid/hid_device.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/class/hid/hid_device.c b/src/class/hid/hid_device.c index 3a20a9cc8..765ee042e 100644 --- a/src/class/hid/hid_device.c +++ b/src/class/hid/hid_device.c @@ -265,6 +265,7 @@ void hidd_init(void) void hidd_reset(uint8_t rhport)
{
+ (void) rhport;
tu_memclr(_hidd_itf, sizeof(_hidd_itf));
#if CFG_TUD_HID_KEYBOARD
@@ -447,6 +448,7 @@ bool hidd_control_request(uint8_t rhport, tusb_control_request_t const * p_reque // return false to stall control endpoint (e.g Host send non-sense DATA)
bool hidd_control_request_complete(uint8_t rhport, tusb_control_request_t const * p_request)
{
+ (void) rhport;
hidd_interface_t* p_hid = get_interface_by_itfnum( (uint8_t) p_request->wIndex );
TU_ASSERT(p_hid);
@@ -469,6 +471,11 @@ bool hidd_control_request_complete(uint8_t rhport, tusb_control_request_t const bool hidd_xfer_cb(uint8_t rhport, uint8_t ep_addr, xfer_result_t event, uint32_t xferred_bytes)
{
// nothing to do
+ (void) rhport;
+ (void) ep_addr;
+ (void) event;
+ (void) xferred_bytes;
+
return true;
}
|
