Skip to content

Commit

Permalink
Merge pull request #2343 from hathach/release-0.16.0
Browse files Browse the repository at this point in the history
Release 0.16.0
  • Loading branch information
hathach committed Nov 24, 2023
2 parents 2fc9fbe + e558869 commit 1eb6ce7
Show file tree
Hide file tree
Showing 12 changed files with 291 additions and 124 deletions.
53 changes: 33 additions & 20 deletions README.rst
@@ -1,7 +1,16 @@
|Build Status| |Documentation Status| |Fuzzing Status| |License|

TinyUSB
=======
Sponsors
========

TinyUSB is funded by: Adafruit. Purchasing products from them helps to support this project.

.. figure:: docs/assets/adafruit_logo.svg
:alt: Adafruit Logo
:target: https://www.adafruit.com

TinyUSB Project
===============

.. figure:: docs/assets/logo.svg
:alt: TinyUSB
Expand All @@ -19,23 +28,28 @@ the non-ISR task function. Check out the online `documentation <https://docs.tin

.
├── docs # Documentation
├── examples # Sample with Makefile build support
├── examples # Examples with make and cmake build system
├── hw
│ ├── bsp # Supported boards source files
│ └── mcu # Low level mcu core & peripheral drivers
├── lib # Sources from 3rd party such as freeRTOS, fatfs ...
├── src # All sources files for TinyUSB stack itself.
├── test # Unit tests for the stack
├── test # Tests: unit test, fuzzing, hardware test
└── tools # Files used internally

Sponsors
========

TinyUSB is funded by
Getting started
===============

.. figure:: docs/assets/adafruit_logo.svg
:alt: Adafruit
:target: https://www.adafruit.com
See the `online documentation <https://docs.tinyusb.org>`_ for information about using TinyUSB and how it is implemented.

We use `GitHub Discussions <https://github.com/hathach/tinyusb/discussions>`_ as our forum. It is a great place to ask questions and advice from the community or to discuss your TinyUSB-based projects.

For bugs and feature requests, please `raise an issue <https://github.com/hathach/tinyusb/issues>`_ and follow the templates there.

Check out `Getting Started`_ guide for adding TinyUSB to your project or building the examples. If you are new to TinyUSB, we recommend starting with the `cdc_msc` example.

See `Porting`_ guide for adding support for new MCUs and boards.

Device Stack
============
Expand Down Expand Up @@ -146,6 +160,15 @@ Following CPUs are supported, check out `Supported Devices`_ for comprehensive l
| WCH | CH32F20x, CH32V307, |
+--------------+------------------------------------------------------------+

License
=======

All TinyUSB sources in the ``src`` folder are licensed under MIT
license, the `Full license is here <LICENSE>`__. However, each file can be
individually licensed especially those in ``lib`` and ``hw/mcu`` folder.
Please make sure you understand all the license term for files you use
in your project.

Docs
====

Expand All @@ -168,16 +191,6 @@ Docs
- `Structure`_
- `Porting`_

License
=======

All TinyUSB sources in the ``src`` folder are licensed under MIT
license, the `Full license is here <LICENSE>`__. However, each file can be
individually licensed especially those in ``lib`` and ``hw/mcu`` folder.
Please make sure you understand all the license term for files you use
in your project.


.. |Build Status| image:: https://github.com/hathach/tinyusb/actions/workflows/cmake_arm.yml/badge.svg
:target: https://github.com/hathach/tinyusb/actions
.. |Documentation Status| image:: https://readthedocs.org/projects/tinyusb/badge/?version=latest
Expand Down
142 changes: 142 additions & 0 deletions docs/info/changelog.rst
Expand Up @@ -2,6 +2,148 @@
Changelog
*********

0.16.0
======

- New controller driver: MAX3421e (usb host shield), rusb2 (Renesas USB2.0), ChipIdea fullspeed
- New MCUs: MCXn9, nRF5340, STM32: G0, G4, L5, U575, U5A5, RA6m5, CH32F20x
- Add initial TypeC PowerDelivery support with STM32G4
- Remove submodules and use python script to manage repo dependencies #1947
- Add CMake support for most families and boards, move build file from tools/ to examples/build_system
- Add ETM trace support with JTrace for nrf52840, nrf5340, mcb1857, stm32h743eval, ra6m5
- [osal] Make it possible to override the osal_task_delay() in osal_none
- Add CDC+UAC2 composite device example
- Enhance Hardware-in-the-loop (HIL) testing with more boards: rp2040, stm32l412nucleo, stm32f746disco, lpcxpresso43s67

Controller Driver (DCD & HCD)
-----------------------------

- Add new ISO endpoint API: dcd_edpt_iso_alloc() and dcd_edpt_iso_activate()
- Remove legacy driver st/synopsys

- EHCI

- [iMXRT] Add dache clean/invalidate when memory is in cacheable memory
- Fix portsc write issue which cause problem with enumeration
- Fix an issue when doing port reset write to portsc
- Fix port change detect is not recognized when power on with attached device
- Fix xfer failed with disconnected device as stalled
- Fix error on EHCI causes xfer error in non-queued qhd which cause memory fault
- Un-roll recursive hub removal with usbh queue
- Fix issue when removing queue head
- Implement hcd_edpt_abort_xfer()
- use standard USB complete interrupt instead of custom chipidea async/period interrupt to be more compatible with other ehci implementation
- refactor usb complete & error isr processing, merge, update. Fix EHCI QHD reuses QTD on wrong endpoint
- Improve bus reset, fix send_setup() not carried out if halted previously
- Fix clear qhd halted bit if not caused by STALL protocol to allow for next transfer

- ChipIdea Highspeed

- Fix control transfer issue when previous status and new setup complete in the same isr frame
- [imxrt] Add dcache support for cache region

- ChipIdea Fullspeed

- Generalize ChipIdea Fullspeed driver for mcxn9 (port 0), kinetis

- nrf

- Fix DMA race condition with ISO OUT transfer #1946
- Add support for nRF5340 with pca10095 board

- Renesas rusb2

- Generalize rusb2 driver for ra, rx mcus
- rework both dcd and hcd for better multiple ports support
- Add support for board with HS USB port: ra6m5 port1

- rp2040

- [dcd] Make writes to SIE_CTRL aware of concurrent access
- [hcd] add hcd_frame_number(), hcd_edpt_abort_xfer() for pio-usb host

- stm32 fsdev:

- Add STM32L5 support
- Implement dcd_edpt_iso_alloc() and dcd_edpt_iso_activate()

- OHCI

- Allows configurable root hub ports, handles SMM mode (Ref OHCI spec 5.1.1.3.3) and Bios mode (Ref OHCI spec 5.1.1.3.4)
- Fix FrameIntervalToggle must be toggled after we write the FrameInterval (Ref OHCI Spec 7.3.1)
- Wait PowerOnToPowerGoodTime after we enable power of the RH ports (Ref OHCI Spec 7.4.1)
- Generate port interrupts for devices already connected during init.
- Fix issue when removing queue head
- Disable MIE during IRQ processing and clear HccaDoneHead on completion as per OCHI Spec Page 80

Device Stack
------------

- Add optional hooks tud_event_hook_cb()
- Audio (UAC2)

- Fix feedback EP buffer alignment.
- Fix encoding, update example
- Improve IN transfer

- Bluetooth

- Add historical EP compatibility for Bluetooth HCI

- CDC

- Fix line_coding alignment
- Fix typo in cdc line coding enum

- MIDI

- Fix stream_write() always writes system messages to cable 0
- Fix incorrect NOTE_ON, NOTE_OFF definitions

- USBTMC: Fix tmc488 bit order

- Vendor: fix read()/write() race condition

- Video (UVC)

- Add the capability for video class to handle a bulk endpoint in the streaming interface.

Host Stack
----------

- USBH

- Add new APIs: tuh_interface_set(), tuh_task_event_ready(), tuh_edpt_abort_xfer(), tuh_rhport_reset_bus(), tuh_rhport_is_active()
- Fix issue when device generate multiple attach/detach/attach when plugging in
- Prefer application callback over built-in driver on transfer complete event
- Correct hcd_edpt_clear_stall() API signature
- Separate bus reset delay and contact debouncing delay in enumeration
- Support usbh_app_driver_get_cb() for application drivers
- Fix usbh enumeration removal race condition
- Add optional hooks tuh_event_hook_cb()

- CDC

- Breaking: change tuh_cdc_itf_get_info() to use tuh_itf_info_t instead of tuh_cdc_info_t
- Fix cdc host enumeration issue when device does not support line request
- Add support for vendor usb2uart serial: ftdi, cp210x, ch9102f
- Improve sync control API e.g tuh_cdc_set_control_line_state(), tuh_cdc_set_line_coding()

- HID

- Add new APIs tuh_hid_send_report(), tuh_hid_itf_get_info(), tuh_hid_receive_ready(), tuh_hid_send_ready(), tuh_hid_set_default_protocol()
- Change meaning of CFG_TUH_HID to total number of HID interfaces supported. Previously CFG_TUH_HID is max number of interfaces per device which is rather limited and consume more resources than needed.

- HUB

- Fix handling of empty "status change" interrupt
- Fix issue with hub status_change is not aligned

- MSC

- Fix bug in tuh_msc_ready()
- Fix host msc get maxlun not using aligned section memory

0.15.0
======

Expand Down

0 comments on commit 1eb6ce7

Please sign in to comment.