diff options
Diffstat (limited to 'tinyusb/device/usbd.h')
| -rw-r--r-- | tinyusb/device/usbd.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tinyusb/device/usbd.h b/tinyusb/device/usbd.h index 8258abfdf..f16a0215b 100644 --- a/tinyusb/device/usbd.h +++ b/tinyusb/device/usbd.h @@ -100,7 +100,13 @@ typedef struct { //--------------------------------------------------------------------+
// APPLICATION API
//--------------------------------------------------------------------+
-bool tud_mounted(uint8_t port);
+bool tud_n_mounted(uint8_t port);
+
+static inline bool tud_mounted(void)
+{
+ return tud_n_mounted(0);
+}
+
/*------------- Callback -------------*/
/** \brief Callback function that will be invoked device is mounted (configured) by USB host
|
