From 791efecfdfd650e7287388e3f3210b18f7262934 Mon Sep 17 00:00:00 2001 From: hathach Date: Thu, 13 May 2021 00:11:20 +0700 Subject: add tuh_device_ready() --- src/device/usbd.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/device') 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(); -- cgit v1.3.1