esp32-s2_dfu/src/class/dfu
Jerzy Kasenberg c7469ce986 dfu: Allow DFU coexistence with other interfaces
dfu_moded_open() only works correct when its called on DFU interface
descriptor. It means that DFU is the only one interface in configuration
or driver is called after all others interface drivers were tried and
gave up.

If other interface is supported and but driver for DFU is called first
(this is the case for BTH and RNDIS).
Code after while loop (that was not entered) has an TU_ASSERT that will
make set_configuration to fail.

Now TU_VERIFY is called first to make sure open code is called for DFU
only and not other interface descriptors like in other drivers.
2022-08-09 10:42:30 +02:00
..
dfu.h wrap up DFU update 2021-07-15 20:47:50 +07:00
dfu_device.c dfu: Allow DFU coexistence with other interfaces 2022-08-09 10:42:30 +02:00
dfu_device.h rename CFG_TUD_DFU_TRANSFER_BUFSIZE to CFG_TUD_DFU_XFER_BUFSIZE 2021-07-22 01:00:06 +07:00
dfu_rt_device.c rename TUSB_OPT_DEVICE_ENABLED to CFG_TUD_ENABLED 2022-02-25 18:35:21 +07:00
dfu_rt_device.h include clean up 2021-05-27 17:40:39 +07:00