espressif / idf-extra-components

Additional components for ESP-IDF, maintained by Espressif
147 stars 89 forks source link

esp_tinyusb: add MSC mount changed event and callback (IEC-15) #166

Closed larryli closed 1 year ago

larryli commented 1 year ago

Add callback for load/unload disk storage.

static void storage_mount_changed(tinyusb_msc_event_t *event)
{
    if (event->mount_changed_data.is_mounted) {
        gpio_set_level(CONFIG_LED_GPIO, 0);
    } else {
        gpio_set_level(CONFIG_LED_GPIO, 1);
    }
}
CLAassistant commented 1 year ago

CLA assistant check
All committers have signed the CLA.

tore-espressif commented 1 year ago

Thank you for the contribution @larryli ! @esp-saurabhbansal could you please take a look?

esp-saurabhbansal commented 1 year ago

3. bump the version in file idf-extra-components/usb/esp_tinyusb/idf_component.yml from 1.2.0 to 1.2.1

Also, this one is remaining.

esp-saurabhbansal commented 1 year ago

@larryli

2. Please make sure that all automatic checks are resolved.

Please refer to all the checks. These must be passed. Here, one pre-commit check is currently failing. Also, Please sign the Contributor License Agreement