summaryrefslogtreecommitdiff
path: root/src/class/hid
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-07-13 16:09:26 +0700
committerhathach <[email protected]>2018-07-13 16:09:26 +0700
commitdccb06ba7d7c1a162ea84b98b1429ff8f4b74b0e (patch)
tree8c697ee8065b4c65ee1c496bca34154952afcbd7 /src/class/hid
parent5f8882a6d75c64bd00bd017a3ad1290159160a1b (diff)
rename class driver close() to reset()
Diffstat (limited to 'src/class/hid')
-rw-r--r--src/class/hid/hid_device.c2
-rw-r--r--src/class/hid/hid_device.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/class/hid/hid_device.c b/src/class/hid/hid_device.c
index a6080e69d..bc2ee8c64 100644
--- a/src/class/hid/hid_device.c
+++ b/src/class/hid/hid_device.c
@@ -168,7 +168,7 @@ void hidd_init(void)
}
}
-void hidd_close(uint8_t rhport)
+void hidd_reset(uint8_t rhport)
{
for(uint8_t i=0; i<HIDD_NUMBER_OF_SUBCLASS; i++)
{
diff --git a/src/class/hid/hid_device.h b/src/class/hid/hid_device.h
index b211731e0..855421eca 100644
--- a/src/class/hid/hid_device.h
+++ b/src/class/hid/hid_device.h
@@ -204,7 +204,7 @@ void hidd_init(void);
tusb_error_t hidd_open(uint8_t rhport, tusb_desc_interface_t const * p_interface_desc, uint16_t *p_length);
tusb_error_t hidd_control_request_st(uint8_t rhport, tusb_control_request_t const * p_request);
tusb_error_t hidd_xfer_cb(uint8_t rhport, uint8_t edpt_addr, tusb_event_t event, uint32_t xferred_bytes);
-void hidd_close(uint8_t rhport);
+void hidd_reset(uint8_t rhport);
#endif