Skip to content

Commit

Permalink
Merge pull request #236 from lucianomartin/feature/update_tinyusb
Browse files Browse the repository at this point in the history
Update tinyusb to latest version and enable test-mode
  • Loading branch information
xluciano authored Jun 10, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents 85f500c + e5bed18 commit b62667b
Showing 4 changed files with 23 additions and 8 deletions.
15 changes: 8 additions & 7 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -5,7 +5,8 @@ UNRELEASED
----------

* FIXED: Windows host issue with pre-2013 Visual Studio Compiler and stdbool.h.

* UPDATED: To tinyusb_src commit c61f5f4, it includes official support for USB test mode.

3.1.0
-----

@@ -31,25 +32,25 @@ UNRELEASED

3.0.3
-----

* FIXED: Now fully supports overriding implementations for FatFS IO functions.

3.0.2
-----

* UPDATED: To test again fwk_io v3.0.1
* UPDATED: To test again lib_qspi_fast_read v1.0.1
* ADDED: Retry connect behavior to lib_quadflash portion of RTOS flash driver
* FIXED: Fixed device control host for Windows.

3.0.1
-----

* FIXED: Fix to stop dest_ctrl_buffer being overwritten when xfers on EPs other than EP0 are initiated

3.0.0
-----

* REMOVED: QSPI IO based RTOS flash driver
* ADDED: lib_qspi_fast_read and lib_quadflash based RTOS flash driver
* ADDED: RTOS flash driver function to set core affinity for QSPI transactions
@@ -58,12 +59,12 @@ UNRELEASED

2.0.0
-----

* CHANGE: USB driver now supports XUD v2.2.2

1.1.0
-----

* ADDED: Improved SPI device control support

1.0.0
13 changes: 13 additions & 0 deletions modules/sw_services/usb/portable/tusb_os_custom.h
Original file line number Diff line number Diff line change
@@ -105,6 +105,13 @@ static inline bool osal_mutex_unlock(osal_mutex_t mutex_hdl)
return xSemaphoreGive(mutex_hdl);
}

static inline bool osal_mutex_delete(osal_mutex_t mutex_hdl)
{
vSemaphoreDelete(mutex_hdl);

return true;
}

//--------------------------------------------------------------------+
// QUEUE API
//--------------------------------------------------------------------+
@@ -167,6 +174,12 @@ static inline bool osal_queue_empty(osal_queue_t qhdl)
return uxQueueMessagesWaiting(qhdl) == 0;
}

static inline bool osal_queue_delete(osal_queue_t qhdl)
{
vQueueDelete(qhdl);
return true;
}

#ifdef __cplusplus
}
#endif
2 changes: 1 addition & 1 deletion modules/sw_services/usb/thirdparty/tinyusb_src
Submodule tinyusb_src updated 98 files
+1 −1 src/CMakeLists.txt
+25 −0 src/class/audio/audio.h
+74 −54 src/class/audio/audio_device.c
+13 −16 src/class/audio/audio_device.h
+5 −2 src/class/bth/bth_device.c
+1 −0 src/class/bth/bth_device.h
+38 −9 src/class/cdc/cdc_device.c
+7 −0 src/class/cdc/cdc_device.h
+32 −19 src/class/cdc/cdc_host.c
+2 −1 src/class/cdc/cdc_host.h
+5 −2 src/class/dfu/dfu_device.c
+1 −0 src/class/dfu/dfu_device.h
+5 −2 src/class/dfu/dfu_rt_device.c
+1 −0 src/class/dfu/dfu_rt_device.h
+297 −201 src/class/hid/hid.h
+175 −188 src/class/hid/hid_device.c
+235 −0 src/class/hid/hid_device.h
+275 −306 src/class/hid/hid_host.c
+25 −12 src/class/hid/hid_host.h
+30 −6 src/class/midi/midi_device.c
+1 −0 src/class/midi/midi_device.h
+25 −3 src/class/msc/msc_device.c
+4 −0 src/class/msc/msc_device.h
+7 −1 src/class/msc/msc_host.c
+2 −1 src/class/msc/msc_host.h
+5 −2 src/class/net/ecm_rndis_device.c
+105 −11 src/class/net/ncm.h
+750 −375 src/class/net/ncm_device.c
+7 −20 src/class/net/net_device.h
+25 −0 src/class/usbtmc/usbtmc.h
+36 −6 src/class/usbtmc/usbtmc_device.c
+19 −13 src/class/usbtmc/usbtmc_device.h
+48 −14 src/class/vendor/vendor_device.c
+1 −0 src/class/vendor/vendor_device.h
+189 −74 src/class/video/video.h
+242 −128 src/class/video/video_device.c
+1 −0 src/class/video/video_device.h
+1 −0 src/common/tusb_common.h
+2 −1 src/common/tusb_compiler.h
+2 −1 src/common/tusb_debug.h
+30 −2 src/common/tusb_fifo.c
+9 −16 src/common/tusb_fifo.h
+71 −11 src/common/tusb_mcu.h
+9 −10 src/common/tusb_private.h
+68 −118 src/common/tusb_types.h
+4 −4 src/common/tusb_verify.h
+11 −16 src/device/dcd.h
+330 −302 src/device/usbd.c
+22 −8 src/device/usbd.h
+13 −6 src/device/usbd_pvt.h
+4 −1 src/host/hcd.h
+6 −2 src/host/hub.c
+6 −7 src/host/hub.h
+436 −452 src/host/usbh.c
+20 −2 src/host/usbh.h
+7 −5 src/host/usbh_pvt.h
+3 −0 src/osal/osal.h
+17 −2 src/osal/osal_freertos.h
+31 −30 src/osal/osal_mynewt.h
+16 −1 src/osal/osal_none.h
+43 −63 src/osal/osal_pico.h
+40 −24 src/osal/osal_rtthread.h
+32 −29 src/osal/osal_rtx4.h
+209 −131 src/portable/analog/max3421/hcd_max3421.c
+2 −4 src/portable/chipidea/ci_fs/ci_fs_kinetis.h
+17 −8 src/portable/chipidea/ci_fs/ci_fs_mcx.h
+13 −1 src/portable/chipidea/ci_fs/dcd_ci_fs.c
+8 −5 src/portable/chipidea/ci_hs/dcd_ci_hs.c
+1 −1 src/portable/ehci/ehci.c
+12 −1 src/portable/espressif/esp32sx/dcd_esp32sx.c
+8 −3 src/portable/microchip/samd/dcd_samd.c
+11 −0 src/portable/mindmotion/mm32/dcd_mm32f327x_otg.c
+276 −357 src/portable/nordic/nrf5x/dcd_nrf5x.c
+12 −0 src/portable/nxp/khci/dcd_khci.c
+12 −1 src/portable/nxp/lpc_ip3511/dcd_lpc_ip3511.c
+1 −1 src/portable/ohci/ohci.h
+168 −194 src/portable/raspberrypi/rp2040/dcd_rp2040.c
+14 −6 src/portable/raspberrypi/rp2040/hcd_rp2040.c
+59 −113 src/portable/raspberrypi/rp2040/rp2040_usb.c
+78 −103 src/portable/renesas/rusb2/dcd_rusb2.c
+37 −54 src/portable/renesas/rusb2/hcd_rusb2.c
+22 −8 src/portable/sony/cxd56/dcd_cxd56.c
+415 −731 src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c
+0 −567 src/portable/st/stm32_fsdev/dcd_stm32_fsdev_pvt_st.h
+232 −0 src/portable/st/stm32_fsdev/fsdev_ch32.h
+391 −0 src/portable/st/stm32_fsdev/fsdev_common.h
+292 −0 src/portable/st/stm32_fsdev/fsdev_stm32.h
+8 −6 src/portable/sunxi/dcd_sunxi_musb.c
+214 −209 src/portable/synopsys/dwc2/dcd_dwc2.c
+25 −8 src/portable/synopsys/dwc2/dwc2_type.h
+121 −10 src/portable/ti/msp430x5xx/dcd_msp430x5xx.c
+111 −0 src/portable/wch/ch32_usbfs_reg.h
+53 −19 src/portable/wch/ch32_usbhs_reg.h
+344 −0 src/portable/wch/dcd_ch32_usbfs.c
+298 −269 src/portable/wch/dcd_ch32_usbhs.c
+117 −187 src/tusb.c
+0 −2 src/tusb.h
+56 −23 src/tusb_option.h
1 change: 1 addition & 0 deletions test/rtos_drivers/usb/src/tusb_config.h
Original file line number Diff line number Diff line change
@@ -69,6 +69,7 @@
#define CFG_TUD_AUDIO 0
#define CFG_TUD_VENDOR 0
#define CFG_TUD_DFU 1
#define CFG_TUD_TEST_MODE 1

//--------------------------------------------------------------------
// DFU DRIVER CONFIGURATION

0 comments on commit b62667b

Please sign in to comment.