diff options
| author | hathach <[email protected]> | 2018-03-01 23:43:03 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-03-01 23:43:03 +0700 |
| commit | 0afa0ce4ccf493e7684c753ab0af2411eb198f14 (patch) | |
| tree | 00ffd94382e06383cd5d71a20701fcb27a62016f /tinyusb/device | |
| parent | 04cace7619596377b38914c375b424b9884e4baa (diff) | |
rename tud_configured() to mounted()
Diffstat (limited to 'tinyusb/device')
| -rw-r--r-- | tinyusb/device/usbd.c | 2 | ||||
| -rw-r--r-- | tinyusb/device/usbd.h | 11 |
2 files changed, 7 insertions, 6 deletions
diff --git a/tinyusb/device/usbd.c b/tinyusb/device/usbd.c index d10135151..0f7931f93 100644 --- a/tinyusb/device/usbd.c +++ b/tinyusb/device/usbd.c @@ -102,7 +102,7 @@ static tusb_error_t get_descriptor(uint8_t coreid, tusb_control_request_t const //--------------------------------------------------------------------+
// APPLICATION INTERFACE
//--------------------------------------------------------------------+
-bool tud_configured(uint8_t coreid)
+bool tud_mounted(uint8_t coreid)
{
return usbd_devices[coreid].state == TUSB_DEVICE_STATE_CONFIGURED;
}
diff --git a/tinyusb/device/usbd.h b/tinyusb/device/usbd.h index 55aad312a..59128db84 100644 --- a/tinyusb/device/usbd.h +++ b/tinyusb/device/usbd.h @@ -85,13 +85,14 @@ typedef struct { } usbd_class_driver_t;
//--------------------------------------------------------------------+
-// INTERNAL OBJECT & FUNCTION DECLARATION
-//--------------------------------------------------------------------+
-
-//--------------------------------------------------------------------+
// APPLICATION API
//--------------------------------------------------------------------+
-bool tud_configured(uint8_t coreid);
+bool tud_mounted(uint8_t coreid);
+
+/*------------- Callback -------------*/
+void tud_mount_cb(uint8_t coreid);
+void tud_umount_cb(uint8_t coreid);
+
//void tud_device_suspended_cb(uint8_t coreid);
//--------------------------------------------------------------------+
|
