diff options
| author | hathach <[email protected]> | 2018-12-10 19:25:57 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-12-10 19:25:57 +0700 |
| commit | 4e7596ca9cdde3bd1197cf1853c370d8da48d7a2 (patch) | |
| tree | d17cf308413a25236417bad16d6952f440e14a73 /src/host/usbh.h | |
| parent | 9c4c7975024e9b971a43a866c1feffb419dd8f5b (diff) | |
add tuh_mount_cb/tuh_umount_cb
Diffstat (limited to 'src/host/usbh.h')
| -rw-r--r-- | src/host/usbh.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/host/usbh.h b/src/host/usbh.h index 390b04053..a2e196c9a 100644 --- a/src/host/usbh.h +++ b/src/host/usbh.h @@ -90,8 +90,12 @@ static inline bool tuh_device_is_configured(uint8_t dev_addr) // APPLICATION CALLBACK //--------------------------------------------------------------------+ ATTR_WEAK uint8_t tuh_device_attached_cb (tusb_desc_device_t const *p_desc_device) ATTR_WARN_UNUSED_RESULT; -ATTR_WEAK void tuh_device_mount_succeed_cb (uint8_t dev_addr); -ATTR_WEAK void tuh_device_mount_failed_cb(tusb_error_t error, tusb_desc_device_t const *p_desc_device); // TODO refractor remove desc_device + +/** Callback invoked when device is mounted (configured) */ +ATTR_WEAK void tuh_mount_cb (uint8_t dev_addr); + +/** Callback invoked when device is unmounted (bus reset/unplugged) */ +ATTR_WEAK void tuh_umount_cb(uint8_t dev_addr); //--------------------------------------------------------------------+ // CLASS-USBH & INTERNAL API |
