Skip to content

Commit ab9472f

Browse files
committed
update doc, bump up release 0.18.0
revert OPT_MCU_RAXXX value back to 1403
1 parent 7c1afa8 commit ab9472f

File tree

7 files changed

+90
-13
lines changed

7 files changed

+90
-13
lines changed

docs/info/changelog.rst

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,61 @@
22
Changelog
33
*********
44

5+
0.18.0
6+
======
7+
8+
General
9+
-------
10+
11+
- New MCUs:
12+
13+
- Add esp32p4 OTG highspeed support
14+
- Add stm32 u0, c0, h7rs
15+
16+
- Better support dcache, make sure all usb-transferred buffer are cache line aligned and occupy full cache line
17+
- Build ARM IAR with CircleCI
18+
- Improve HIL with dual/host_info_to_device_cdc optional for pico/pico2, enable dwc2 dma test
19+
20+
21+
API Changes
22+
-----------
23+
24+
- Change signature of ``tusb_init(rhport, tusb_rhport_init_t*)``, tusb_init(void) is now deprecated but still available for backward compatibility
25+
- Add new ``tusb_int_handler(rhport, in_isr)``
26+
- Add time-related APIs: ``tusb_time_millis_api()`` and ``tusb_time_delay_ms_api()`` for non-RTOS, required for some ports/configuration
27+
- New configuration macros:
28+
29+
- ``CFG_TUD/TUH_MEM_DCACHE_ENABLE`` enable data cache sync for endpoint buffer
30+
- ``CFG_TUD/TUH_MEM_DCACHE_LINE_SIZE`` set cache line size
31+
- ``CFG_TUD/TUH_DWC2_SLAVE_ENABLE`` enable dwc2 slave mode
32+
- ``CFG_TUD/TUH_DWC2_DMA_ENABLE`` enable dwc2 dma mode
33+
34+
35+
Controller Driver (DCD & HCD)
36+
-----------------------------
37+
38+
- DWC2
39+
- Add DMA support for both device and host controller
40+
- Add host driver support including: full/high speed, control/bulk/interrupt (CBI) transfer, split CBI i.e FS/LS attached via highspeed hub, hub support
41+
42+
- RP2: implement dcd_edpt_iso_alloc() and dcd_edpt_iso_activate() for isochronous endpoint
43+
- iMXRT1170 support M4 core
44+
45+
Device Stack
46+
------------
47+
48+
- Vendor Fix class reset
49+
- NCM fix recursions in tud_network_recv_renew()
50+
- Audio fix align issue of _audiod_fct.alt_setting
51+
- UVC support format frame based
52+
- Change dcd_dcache_() return type from void to bool
53+
- HID add Usage Table for Physical Input Device Page (0x0F)
54+
55+
Host Stack
56+
----------
57+
58+
- Fix an duplicated attach issue which cause USBH Defer Attach until current enumeration complete message
59+
560
0.17.0
661
======
762

docs/reference/dependencies.rst

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Dependencies
44

55
MCU low-level peripheral driver and external libraries for building TinyUSB examples
66

7-
======================================== ============================================================== ======================================== ==========================================================================================================================================================================================================================================================================================================================
7+
======================================== ============================================================== ======================================== ====================================================================================================================================================================================================================================================================================================================================
88
Local Path Repo Commit Required by
9-
======================================== ============================================================== ======================================== ==========================================================================================================================================================================================================================================================================================================================
9+
======================================== ============================================================== ======================================== ====================================================================================================================================================================================================================================================================================================================================
1010
hw/mcu/allwinner https://github.com/hathach/allwinner_driver.git 8e5e89e8e132c0fd90e72d5422e5d3d68232b756 fc100s
1111
hw/mcu/analog/max32 https://github.com/analogdevicesinc/msdk.git b20b398d3e5e2007594e54a74ba3d2a2e50ddd75 max32650 max32666 max32690 max78002
1212
hw/mcu/bridgetek/ft9xx/ft90x-sdk https://github.com/BRTSG-FOSS/ft90x-sdk.git 91060164afe239fcb394122e8bf9eb24d3194eb1 brtmm90x
@@ -20,10 +20,11 @@ hw/mcu/nuvoton https://github.com/majbthrd/nuc_driver
2020
hw/mcu/nxp/lpcopen https://github.com/hathach/nxp_lpcopen.git b41cf930e65c734d8ec6de04f1d57d46787c76ae lpc11 lpc13 lpc15 lpc17 lpc18 lpc40 lpc43
2121
hw/mcu/nxp/mcux-sdk https://github.com/hathach/mcux-sdk.git 144f1eb7ea8c06512e12f12b27383601c0272410 kinetis_k kinetis_k32l2 kinetis_kl lpc51 lpc54 lpc55 mcx imxrt
2222
hw/mcu/raspberry_pi/Pico-PIO-USB https://github.com/sekigon-gonnoc/Pico-PIO-USB.git fe9133fc513b82cc3dc62c67cb51f2339cf29ef7 rp2040
23-
hw/mcu/renesas/fsp https://github.com/renesas/fsp.git d52e5a6a59b7c638da860c2bb309b6e78e752ff8 ra
23+
hw/mcu/renesas/fsp https://github.com/renesas/fsp.git edcc97d684b6f716728a60d7a6fea049d9870bd6 ra
2424
hw/mcu/renesas/rx https://github.com/kkitayam/rx_device.git 706b4e0cf485605c32351e2f90f5698267996023 rx
2525
hw/mcu/silabs/cmsis-dfp-efm32gg12b https://github.com/cmsis-packs/cmsis-dfp-efm32gg12b.git f1c31b7887669cb230b3ea63f9b56769078960bc efm32
2626
hw/mcu/sony/cxd56/spresense-exported-sdk https://github.com/sonydevworld/spresense-exported-sdk.git 2ec2a1538362696118dc3fdf56f33dacaf8f4067 spresense
27+
hw/mcu/st/cmsis_device_c0 https://github.com/STMicroelectronics/cmsis_device_c0.git fb56b1b70c73b74eacda2a4bcc36886444364ab3 stm32c0
2728
hw/mcu/st/cmsis_device_f0 https://github.com/STMicroelectronics/cmsis_device_f0.git 2fc25ee22264bc27034358be0bd400b893ef837e stm32f0
2829
hw/mcu/st/cmsis_device_f1 https://github.com/STMicroelectronics/cmsis_device_f1.git 6601104a6397299b7304fd5bcd9a491f56cb23a6 stm32f1
2930
hw/mcu/st/cmsis_device_f2 https://github.com/STMicroelectronics/cmsis_device_f2.git 182fcb3681ce116816feb41b7764f1b019ce796f stm32f2
@@ -40,6 +41,8 @@ hw/mcu/st/cmsis_device_l4 https://github.com/STMicroelectronics/
4041
hw/mcu/st/cmsis_device_l5 https://github.com/STMicroelectronics/cmsis_device_l5.git d922865fc0326a102c26211c44b8e42f52c1e53d stm32l5
4142
hw/mcu/st/cmsis_device_u5 https://github.com/STMicroelectronics/cmsis_device_u5.git 5ad9797c54ec3e55eff770fc9b3cd4a1aefc1309 stm32u5
4243
hw/mcu/st/cmsis_device_wb https://github.com/STMicroelectronics/cmsis_device_wb.git 9c5d1920dd9fabbe2548e10561d63db829bb744f stm32wb
44+
hw/mcu/st/stm32-mfxstm32l152 https://github.com/STMicroelectronics/stm32-mfxstm32l152.git 7f4389efee9c6a655b55e5df3fceef5586b35f9b stm32h7
45+
hw/mcu/st/stm32c0xx_hal_driver https://github.com/STMicroelectronics/stm32c0xx_hal_driver.git 41253e2f1d7ae4a4d0c379cf63f5bcf71fcf8eb3 stm32c0
4346
hw/mcu/st/stm32f0xx_hal_driver https://github.com/STMicroelectronics/stm32f0xx_hal_driver.git 0e95cd88657030f640a11e690a8a5186c7712ea5 stm32f0
4447
hw/mcu/st/stm32f1xx_hal_driver https://github.com/STMicroelectronics/stm32f1xx_hal_driver.git 1dd9d3662fb7eb2a7f7d3bc0a4c1dc7537915a29 stm32f1
4548
hw/mcu/st/stm32f2xx_hal_driver https://github.com/STMicroelectronics/stm32f2xx_hal_driver.git c75ace9b908a9aca631193ebf2466963b8ea33d0 stm32f2
@@ -61,9 +64,10 @@ hw/mcu/wch/ch32f20x https://github.com/openwch/ch32f20x.gi
6164
hw/mcu/wch/ch32v103 https://github.com/openwch/ch32v103.git 7578cae0b21f86dd053a1f781b2fc6ab99d0ec17 ch32v10x
6265
hw/mcu/wch/ch32v20x https://github.com/openwch/ch32v20x.git c4c38f507e258a4e69b059ccc2dc27dde33cea1b ch32v20x
6366
hw/mcu/wch/ch32v307 https://github.com/openwch/ch32v307.git 184f21b852cb95eed58e86e901837bc9fff68775 ch32v307
64-
lib/CMSIS_5 https://github.com/ARM-software/CMSIS_5.git 20285262657d1b482d132d20d755c8c330d55c1f imxrt kinetis_k32l2 kinetis_kl lpc51 lpc54 lpc55 mcx mm32 msp432e4 nrf ra saml2xlpc11 lpc13 lpc15 lpc17 lpc18 lpc40 lpc43stm32f0 stm32f1 stm32f2 stm32f3 stm32f4 stm32f7 stm32g0 stm32g4 stm32h5stm32h7 stm32l0 stm32l1 stm32l4 stm32l5 stm32u5 stm32wbsam3x samd11 samd21 samd51 samd5x_e5x same5x same7x saml2x samgtm4c
67+
lib/CMSIS_5 https://github.com/ARM-software/CMSIS_5.git 2b7495b8535bdcb306dac29b9ded4cfb679d7e5c imxrt kinetis_k32l2 kinetis_kl lpc51 lpc54 lpc55 mcx mm32 msp432e4 nrf saml2x lpc11 lpc13 lpc15 lpc17 lpc18 lpc40 lpc43 stm32c0 stm32f0 stm32f1 stm32f2 stm32f3 stm32f4 stm32f7 stm32g0 stm32g4 stm32h5 stm32h7 stm32l0 stm32l1 stm32l4 stm32l5 stm32u5 stm32wb sam3x samd11 samd21 samd51 samd5x_e5x same5x same7x saml2x samg tm4c
68+
lib/CMSIS_6 https://github.com/ARM-software/CMSIS_6.git b0bbb0423b278ca632cfe1474eb227961d835fd2 ra
6569
lib/FreeRTOS-Kernel https://github.com/FreeRTOS/FreeRTOS-Kernel.git cc0e0707c0c748713485b870bb980852b210877f all
6670
lib/lwip https://github.com/lwip-tcpip/lwip.git 159e31b689577dbf69cf0683bbaffbd71fa5ee10 all
6771
lib/sct_neopixel https://github.com/gsteiert/sct_neopixel.git e73e04ca63495672d955f9268e003cffe168fcd8 lpc55
6872
tools/uf2 https://github.com/microsoft/uf2.git c594542b2faa01cc33a2b97c9fbebc38549df80a all
69-
======================================== ============================================================== ======================================== ==========================================================================================================================================================================================================================================================================================================================
73+
======================================== ============================================================== ======================================== ====================================================================================================================================================================================================================================================================================================================================

docs/reference/getting_started.rst

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ It is relatively simple to incorporate tinyusb to your project
1010
* Copy or ``git submodule`` this repo into your project in a subfolder. Let's say it is *your_project/tinyusb*
1111
* Add all the .c in the ``tinyusb/src`` folder to your project
1212
* Add *your_project/tinyusb/src* to your include path. Also make sure your current include path also contains the configuration file tusb_config.h.
13-
* Make sure all required macros are all defined properly in tusb_config.h (configure file in demo application is sufficient, but you need to add a few more such as CFG_TUSB_MCU, CFG_TUSB_OS since they are passed by IDE/compiler to maintain a unique configure for all boards).
13+
* Make sure all required macros are all defined properly in tusb_config.h (configure file in demo application is sufficient, but you need to add a few more such as ``CFG_TUSB_MCU``, ``CFG_TUSB_OS`` since they are passed by IDE/compiler to maintain a unique configure for all boards).
1414
* If you use the device stack, make sure you have created/modified usb descriptors for your own need. Ultimately you need to implement all **tud descriptor** callbacks for the stack to work.
1515
* Add tusb_init(rhport, role) call to your reset initialization code.
1616
* Call ``tusb_int_handler(rhport, in_isr)`` in your USB IRQ Handler
@@ -20,8 +20,17 @@ It is relatively simple to incorporate tinyusb to your project
2020
.. code-block::
2121
2222
int main(void) {
23-
your_init_code();
24-
tusb_init(0, TUSB_ROLE_DEVICE); // initialize device stack on roothub port 0
23+
tusb_rhport_init_t dev_init = {
24+
.role = TUSB_ROLE_DEVICE,
25+
.speed = TUSB_SPEED_AUTO
26+
};
27+
tusb_init(0, &dev_init); // initialize device stack on roothub port 0
28+
29+
tusb_rhport_init_t host_init = {
30+
.role = TUSB_ROLE_HOST,
31+
.speed = TUSB_SPEED_AUTO
32+
};
33+
tusb_init(1, &host_init); // initialize host stack on roothub port 1
2534
2635
while(1) { // the mainloop
2736
your_application_code();
@@ -30,6 +39,14 @@ It is relatively simple to incorporate tinyusb to your project
3039
}
3140
}
3241
42+
void USB0_IRQHandler(void) {
43+
tusb_int_handler(0, true);
44+
}
45+
46+
void USB1_IRQHandler(void) {
47+
tusb_int_handler(1, true);
48+
}
49+
3350
Examples
3451
--------
3552

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "TinyUSB",
3-
"version": "0.17.0",
3+
"version": "0.18.0",
44
"description": "TinyUSB is an open-source cross-platform USB Host/Device stack for embedded system, designed to be memory-safe with no dynamic allocation and thread-safe with all interrupt events are deferred then handled in the non-ISR task function.",
55
"keywords": "usb, host, device",
66
"repository":

repository.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@ repo.versions:
1515
"0.15.0": "0.15.0"
1616
"0.16.0": "0.16.0"
1717
"0.17.0": "0.17.0"
18-
"0-latest": "0.17.0"
18+
"0.18.0": "0.18.0"
19+
"0-latest": "0.18.0"
1920
"0-dev": "0.0.0"

src/tusb_option.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
// Version is release as major.minor.revision eg 1.0.0
3333
#define TUSB_VERSION_MAJOR 0
34-
#define TUSB_VERSION_MINOR 17
34+
#define TUSB_VERSION_MINOR 18
3535
#define TUSB_VERSION_REVISION 0
3636

3737
#define TUSB_VERSION_NUMBER (TUSB_VERSION_MAJOR * 10000 + TUSB_VERSION_MINOR * 100 + TUSB_VERSION_REVISION)
@@ -152,7 +152,7 @@
152152
#define OPT_MCU_RX63X 1400 ///< Renesas RX63N/631
153153
#define OPT_MCU_RX65X 1401 ///< Renesas RX65N/RX651
154154
#define OPT_MCU_RX72N 1402 ///< Renesas RX72N
155-
#define OPT_MCU_RAXXX 1420 ///< Renesas RA generic
155+
#define OPT_MCU_RAXXX 1403 ///< Renesas RA generic
156156

157157
// Mind Motion
158158
#define OPT_MCU_MM32F327X 1500 ///< Mind Motion MM32F327

tools/make_release.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import re
33
import gen_doc
44

5-
version = '0.17.0'
5+
version = '0.18.0'
66

77
print('version {}'.format(version))
88
ver_id = version.split('.')

0 commit comments

Comments
 (0)