summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-03-29 16:23:00 +0700
committerhathach <[email protected]>2019-03-29 16:23:00 +0700
commit1c2beba85c223bcf401f877b0c29025490fcdaa4 (patch)
treeb79e6cb6cfab2139a3894d46e4731ec81ce78318 /examples
parent0bdd4bd55002c4563154214a4d57581433cae668 (diff)
working on suspend and resume
change dcd_init signature
Diffstat (limited to 'examples')
-rw-r--r--examples/device/cdc_msc_hid/src/main.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/device/cdc_msc_hid/src/main.c b/examples/device/cdc_msc_hid/src/main.c
index 75d9a31dc..1416852f7 100644
--- a/examples/device/cdc_msc_hid/src/main.c
+++ b/examples/device/cdc_msc_hid/src/main.c
@@ -127,6 +127,7 @@ void usb_hid_task(void)
if ( board_millis() < start_ms + interval_ms) return; // not enough time
start_ms += interval_ms;
+#if 1
uint32_t const btn = board_buttons();
/*------------- Keyboard -------------*/
@@ -160,18 +161,29 @@ void usb_hid_task(void)
if ( btn & 0x04 ) tud_hid_mouse_move( 0 , -DELTA); // up
if ( btn & 0x08 ) tud_hid_mouse_move( 0 , DELTA); // down
}
+#endif
}
uint16_t tud_hid_generic_get_report_cb(uint8_t report_id, hid_report_type_t report_type, uint8_t* buffer, uint16_t reqlen)
{
// TODO not Implemented
+ (void) report_id;
+ (void) report_type;
+ (void) buffer;
+ (void) reqlen;
+
return 0;
}
void tud_hid_generic_set_report_cb(uint8_t report_id, hid_report_type_t report_type, uint8_t const* buffer, uint16_t bufsize)
{
// TODO not Implemented
+ (void) report_id;
+ (void) report_type;
+ (void) buffer;
+ (void) bufsize;
}
+
#endif
//--------------------------------------------------------------------+