summaryrefslogtreecommitdiff
path: root/src/class
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-07-23 22:36:29 +0700
committerhathach <[email protected]>2018-07-23 22:36:29 +0700
commit51903a60c51bd1006bec9266dbe1bfb35e282675 (patch)
treeb25038fe0b5294f76a4eba71edb397ebbcb3430b /src/class
parent361928f42983bed4d10443668d8eb3db69ade80f (diff)
rename timeout_ API to tu_timeout API
Diffstat (limited to 'src/class')
-rw-r--r--src/class/hid/hid_device.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/class/hid/hid_device.c b/src/class/hid/hid_device.c
index 4ce927725..82c7e3d3f 100644
--- a/src/class/hid/hid_device.c
+++ b/src/class/hid/hid_device.c
@@ -142,14 +142,14 @@ bool tud_hid_keyboard_send_string(const char* str, uint32_t interval_ms)
tud_hid_keyboard_send_char(ch);
// Blocking delay
- timeout_blocking_wait(interval_ms);
+ tu_timeout_wait(interval_ms);
/* Only need to empty report if the next character is NULL or the same with
* the current one, else no need to send */
if ( lookahead == ch || lookahead == 0 )
{
tud_hid_keyboard_send_report(NULL);
- timeout_blocking_wait(interval_ms);
+ tu_timeout_wait(interval_ms);
}
}
@@ -170,7 +170,7 @@ bool tud_hid_mouse_busy(void)
bool tud_hid_mouse_send(hid_mouse_report_t const *p_report)
{
- VERIFY( tud_mounted() && !tud_hid_mouse_is_busy() );
+ VERIFY( tud_mounted() && !tud_hid_mouse_busy() );
hidd_interface_t * p_hid = &_mse_itf;
memcpy(p_hid->report_buf, p_report, sizeof(hid_mouse_report_t));