summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-07-24 16:55:30 +0700
committerhathach <[email protected]>2018-07-24 16:55:30 +0700
commit255f8329049b41926989398ac58455e39fe93a25 (patch)
tree2bc1a980d42e6a371b94a09ca1fc75fb51318a13
parent3dc1d847b8847ba82561df9c7b4cb62fca7938cf (diff)
rename device mouse API
-rw-r--r--examples/device/nrf52840/src/main.c2
-rw-r--r--src/class/hid/hid_device.c2
-rw-r--r--src/class/hid/hid_device.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/device/nrf52840/src/main.c b/examples/device/nrf52840/src/main.c
index 1f7f5b22e..286db9e39 100644
--- a/examples/device/nrf52840/src/main.c
+++ b/examples/device/nrf52840/src/main.c
@@ -142,7 +142,7 @@ void usb_hid_task(void)
if ( btn )
{
hid_mouse_report_t report = { .buttons = 0, .x = 10, .y = 0, .wheel = 0 };
- tud_hid_mouse_send_report(&report);
+ tud_hid_mouse_report(&report);
}
}
diff --git a/src/class/hid/hid_device.c b/src/class/hid/hid_device.c
index 4ea584429..a49479000 100644
--- a/src/class/hid/hid_device.c
+++ b/src/class/hid/hid_device.c
@@ -172,7 +172,7 @@ bool tud_hid_mouse_busy(void)
return dcd_edpt_busy(TUD_OPT_RHPORT, _mse_itf.ep_in);
}
-bool tud_hid_mouse_send_report(hid_mouse_report_t const *p_report)
+bool tud_hid_mouse_report(hid_mouse_report_t const *p_report)
{
VERIFY( tud_mounted() && !tud_hid_mouse_busy() );
diff --git a/src/class/hid/hid_device.h b/src/class/hid/hid_device.h
index e0309fe4f..842eb8fa7 100644
--- a/src/class/hid/hid_device.h
+++ b/src/class/hid/hid_device.h
@@ -130,7 +130,7 @@ bool tud_hid_mouse_busy(void);
* \param[in,out] p_report Report data, if NULL, an empty report (all zeroes) is used
* \returns true on success, false otherwise (not mounted or busy)
*/
-bool tud_hid_mouse_send_report(hid_mouse_report_t const *p_report);
+bool tud_hid_mouse_report(hid_mouse_report_t const *p_report);
/*------------- Callbacks -------------*/