rename tud_configured() to mounted()

This commit is contained in:
hathach
2018-03-01 23:43:03 +07:00
parent 04cace7619
commit 0afa0ce4cc
6 changed files with 12 additions and 11 deletions
+1 -1
View File
@@ -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;
}
+6 -5
View File
@@ -84,14 +84,15 @@ typedef struct {
void (* const close) (uint8_t);
} 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);
//--------------------------------------------------------------------+