diff options
| author | hathach <[email protected]> | 2018-03-23 12:17:47 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-03-23 12:17:47 +0700 |
| commit | 6d50d05d9544a5f560242d3c8685413f814aaa76 (patch) | |
| tree | f5c133c831e673502c0bb86133fda3644b60ff56 /examples/obsolete/device/src/keyboard_device_app.c | |
| parent | 98d6ec1ef540b431c249dc5e01d3311c83c4cd54 (diff) | |
rename port to rhport for clarification
Diffstat (limited to 'examples/obsolete/device/src/keyboard_device_app.c')
| -rw-r--r-- | examples/obsolete/device/src/keyboard_device_app.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/obsolete/device/src/keyboard_device_app.c b/examples/obsolete/device/src/keyboard_device_app.c index e1001da96..64087053a 100644 --- a/examples/obsolete/device/src/keyboard_device_app.c +++ b/examples/obsolete/device/src/keyboard_device_app.c @@ -56,17 +56,17 @@ TUSB_CFG_ATTR_USBRAM hid_keyboard_report_t keyboard_report; //--------------------------------------------------------------------+ // tinyusb callbacks //--------------------------------------------------------------------+ -void keyboard_app_mount(uint8_t port) +void keyboard_app_mount(uint8_t rhport) { } -void keyboard_app_umount(uint8_t port) +void keyboard_app_umount(uint8_t rhport) { } -void tud_hid_keyboard_cb(uint8_t port, tusb_event_t event, uint32_t xferred_bytes) +void tud_hid_keyboard_cb(uint8_t rhport, tusb_event_t event, uint32_t xferred_bytes) { switch(event) { @@ -77,7 +77,7 @@ void tud_hid_keyboard_cb(uint8_t port, tusb_event_t event, uint32_t xferred_byte } } -uint16_t tud_hid_keyboard_get_report_cb(uint8_t port, hid_request_report_type_t report_type, void** pp_report, uint16_t requested_length) +uint16_t tud_hid_keyboard_get_report_cb(uint8_t rhport, hid_request_report_type_t report_type, void** pp_report, uint16_t requested_length) { // get other than input report is not supported by this keyboard demo if ( report_type != HID_REQUEST_REPORT_INPUT ) return 0; @@ -86,7 +86,7 @@ uint16_t tud_hid_keyboard_get_report_cb(uint8_t port, hid_request_report_type_t return requested_length; } -void tud_hid_keyboard_set_report_cb(uint8_t port, hid_request_report_type_t report_type, uint8_t p_report_data[], uint16_t length) +void tud_hid_keyboard_set_report_cb(uint8_t rhport, hid_request_report_type_t report_type, uint8_t p_report_data[], uint16_t length) { // set other than output report is not supported by this keyboard demo if ( report_type != HID_REQUEST_REPORT_OUTPUT ) return; |
