rt-thread/port/msc_device.c
bool tud_msc_start_stop_cb(uint8_t lun, uint8_t power_condition, bool start, bool load_eject) {
    (void) lun;
    (void) power_condition;

    if (load_eject) {
        if (start) {
            // load disk storage
            flash_device = rt_device_find(PKG_TINYUSB_DEVICE_MSC_NAME);
        } else {
            // unload disk storage
            ejected = true;
        }
    }

    return true;
}
// Invoked when received Start Stop Unit command
// - Start = 0 : stopped power mode, if load_eject = 1 : unload disk storage
// - Start = 1 : active mode, if load_eject = 1 : load disk storage
Invoked when received Start Stop Unit command
Start = 0 : stopped power mode, if load_eject = 1 : unload disk storage
Start = 1 : active mode, if load_eject = 1 : load disk storage
Invoked when received Start Stop Unit command Start = 0 : stopped power mode if load_eject = 1 : unload disk storage Start = 1 : active mode if load_eject = 1 : load disk storage
bool tud_msc_start_stop_cb(uint8_t lun, uint8_t power_condition, bool start, bool load_eject) {
    (void) lun;
    (void) power_condition;
    if (load_eject) {
        if (start) {
            flash_device = rt_device_find(PKG_TINYUSB_DEVICE_MSC_NAME);
        } else {
            ejected = true;
        }
    }
    return true;
}
bool tud_msc_start_stop_cb ( uint8_t lun , uint8_t power_condition , bool start , bool load_eject ) { ( void ) lun ; ( void ) power_condition ; if ( load_eject ) { if ( start ) { flash_device = rt_device_find ( PKG_TINYUSB_DEVICE_MSC_NAME ) ; } else { ejected = true ; } } return true ; }
Invoked when received Start Stop Unit command
 Start = 0 : stopped power mode, if load_eject = 1 : unload disk storage
 Start = 1 : active mode, if load_eject = 1 : load disk storage
Invoked when received Start Stop Unit command Start = 0 : stopped power mode if load_eject = 1 : unload disk storage Start = 1 : active mode if load_eject = 1 : load disk storage
// load disk storage // unload disk storage