diff options
| author | Ha Thach <[email protected]> | 2024-04-08 23:48:52 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-04-08 23:48:52 +0700 |
| commit | 42decf28f1bf7512a4c3e7402c9daf83ee241191 (patch) | |
| tree | 1a3ed93956a7d51d592d6ba4de6215725ec43c4c /src/class/video | |
| parent | d33fe38a6257bcdd60f51a57c9fd19ce2ad1f202 (diff) | |
| parent | be25a3fc20339c27803e68cb1363f89ffe7a7c67 (diff) | |
Merge pull request #1835 from MasterQ32/otg_bringup
Implements deinit functions for host/device mode switch
Diffstat (limited to 'src/class/video')
| -rw-r--r-- | src/class/video/video_device.c | 4 | ||||
| -rw-r--r-- | src/class/video/video_device.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/class/video/video_device.c b/src/class/video/video_device.c index 891ece721..d0a88eb17 100644 --- a/src/class/video/video_device.c +++ b/src/class/video/video_device.c @@ -1236,6 +1236,10 @@ void videod_init(void) { } } +bool videod_deinit(void) { + return true; +} + void videod_reset(uint8_t rhport) { (void) rhport; for (uint_fast8_t i = 0; i < CFG_TUD_VIDEO; ++i) { diff --git a/src/class/video/video_device.h b/src/class/video/video_device.h index ee2fcb9d5..92930c013 100644 --- a/src/class/video/video_device.h +++ b/src/class/video/video_device.h @@ -85,6 +85,7 @@ TU_ATTR_WEAK int tud_video_commit_cb(uint_fast8_t ctl_idx, uint_fast8_t stm_idx, // INTERNAL USBD-CLASS DRIVER API //--------------------------------------------------------------------+ void videod_init (void); +bool videod_deinit (void); void videod_reset (uint8_t rhport); uint16_t videod_open (uint8_t rhport, tusb_desc_interface_t const * itf_desc, uint16_t max_len); bool videod_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb_control_request_t const * request); |
