rename timeout_ API to tu_timeout API

This commit is contained in:
hathach
2018-07-23 22:36:29 +07:00
parent 361928f429
commit 51903a60c5
4 changed files with 18 additions and 18 deletions

View File

@@ -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));