rename device mouse API

This commit is contained in:
hathach 2018-07-24 16:55:30 +07:00
parent 3dc1d847b8
commit 255f832904
3 changed files with 3 additions and 3 deletions

View File

@ -142,7 +142,7 @@ void usb_hid_task(void)
if ( btn ) if ( btn )
{ {
hid_mouse_report_t report = { .buttons = 0, .x = 10, .y = 0, .wheel = 0 }; hid_mouse_report_t report = { .buttons = 0, .x = 10, .y = 0, .wheel = 0 };
tud_hid_mouse_send_report(&report); tud_hid_mouse_report(&report);
} }
} }

View File

@ -172,7 +172,7 @@ bool tud_hid_mouse_busy(void)
return dcd_edpt_busy(TUD_OPT_RHPORT, _mse_itf.ep_in); 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() ); VERIFY( tud_mounted() && !tud_hid_mouse_busy() );

View File

@ -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 * \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) * \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 -------------*/ /*------------- Callbacks -------------*/