summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorhathach <[email protected]>2021-05-13 00:11:20 +0700
committerhathach <[email protected]>2021-05-18 12:58:24 +0700
commit791efecfdfd650e7287388e3f3210b18f7262934 (patch)
tree203b2a57f8460bb602e3bd089a46d52081dbddb1 /src/device
parentb7a8b278c83b9b8e03a328e17f4b833f925226a2 (diff)
add tuh_device_ready()
Diffstat (limited to 'src/device')
-rw-r--r--src/device/usbd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/device/usbd.h b/src/device/usbd.h
index c0bec9566..c707cecfc 100644
--- a/src/device/usbd.h
+++ b/src/device/usbd.h
@@ -70,6 +70,7 @@ bool tud_mounted(void);
bool tud_suspended(void);
// Check if device is ready to transfer
+TU_ATTR_ALWAYS_INLINE
static inline bool tud_ready(void)
{
return tud_mounted() && !tud_suspended();