No description
  • C 89.2%
  • Linker Script 5.1%
  • CMake 2.5%
  • Makefile 1.3%
  • Python 0.9%
  • Other 1%
Find a file
Roman Leonov da476086df
Some checks failed
pre-commit / pre-commit (push) Has been cancelled
change(tusb): Added dwc2_common.c to cmake sources
2024-11-22 10:35:19 +01:00
.circleci fix circleci set-matrix 2024-10-04 17:10:13 +07:00
.github change(tinyusb): Added repo templates for issue and pull request 2024-11-19 10:27:52 +01:00
.idea hil cleanup flahser 2024-11-13 13:37:29 +07:00
docs hcd work with esp32p4 in slave mode but have issue with DMA mode. In slave it enumerate device but has issue with msc bulk in 2024-11-07 16:37:33 +07:00
examples Merge pull request #2866 from HiFiPhile/uac_fix 2024-11-18 13:02:23 +07:00
hw move handle ep slave/dma wihtin compiler macro 2024-11-18 23:02:17 +07:00
lib Make function parameter definitions match function prototypes ( found with cppcheck) 2024-09-03 20:32:23 +01:00
src fix(dcd_dwc2): Changed OTG Bvalid override configuration for ESP32 2024-11-19 10:27:52 +01:00
test rename CFG_TUD_DWC2_DMA to CFG_TUD_DWC2_DMA_ENABLE 2024-11-14 13:26:11 +07:00
tools update host/device_info to build with freertos for espressif board. Add hil test for host/device_info 2024-11-12 19:00:00 +07:00
.clang-format update clang format 2024-05-02 17:56:36 +07:00
.codespellrc move codespell folder to tools 2023-08-02 15:52:06 +07:00
.gitattributes fix trailing space and new line 2023-03-17 16:12:49 +07:00
.gitignore RP2040 Compile Errors 2024-10-15 23:38:16 +02:00
.pre-commit-config.yaml fix fuzzing build 2024-10-11 16:00:51 +07:00
.readthedocs.yaml try to fix build doc 2023-05-10 15:32:39 +07:00
CMakeLists.txt change(tusb): Added dwc2_common.c to cmake sources 2024-11-22 10:35:19 +01:00
CODE_OF_CONDUCT.rst code_of_conduct: refactor file from markdown to restructuredtext 2021-07-30 12:46:30 +01:00
CONTRIBUTORS.rst Update contributor.rst 2023-08-08 18:25:15 +02:00
idf_component.yml change(tinyusb): Added repo templates for issue and pull request 2024-11-19 10:27:52 +01:00
library.json prepare for 0.17.0 release 2024-09-13 23:23:37 +07:00
LICENSE migrate license from BSD 3 clause to MIT 2019-03-20 16:11:42 +07:00
pkg.yml Change mynewt package type to sdk 2020-05-07 10:11:58 +02:00
README.md feat(tinyusb): Added initial files to make an idf component 2024-11-19 10:27:52 +01:00
README.rst prepare for 0.17.0 release 2024-09-13 23:23:37 +07:00
repository.yml prepare for 0.17.0 release 2024-09-13 23:23:37 +07:00
sbom.yml feat(tinyusb): Added initial files to make an idf component 2024-11-19 10:27:52 +01:00
SConscript [add]Add rtthread script support to better integrate into rtthread projects. 2024-04-18 13:31:31 +08:00
version.yml add repo & version yml 2018-09-02 16:44:27 +07:00

Espressif TinyUSB component

Upstream TinyUSB fork with integration into ESP-IDF build system.

How to use

There are two options of using TinyUSB component with Espressif's SoCs:

1. Use component via Espressif TinyUSB additions

Espressif TinyUSB additions provides several preconfigured features to use benefits of TinyUSB stack faster.

To use Espressif TinyUSB additions, add idf_component.yml to your main component with the following content::

## IDF Component Manager Manifest File
dependencies:
  esp_tinyusb: "^1.0.0" # Automatically update minor releases

Or simply run:

idf.py add-dependency "esp_tinyusb^1.0.0"

Then, the Espressif TinyUSB component will be added automatically during resolving dependencies by the component manager.

2. Use component directly

Use this option for custom TinyUSB applications. In this case you will have to provide configuration header file tusb_config.h. More information about TinyUSB configuration can be found in official TinyUSB documentation.

You will also have to tell TinyUSB where to find the configuration file. This can be achieved by adding following CMake snippet to you main component's CMakeLists.txt:

idf_component_get_property(tusb_lib espressif__tinyusb COMPONENT_LIB)
target_include_directories(${tusb_lib} PRIVATE path_to_your_tusb_config)

Again, you can add this component to your project by adding idf_component.yml file:

## IDF Component Manager Manifest File
dependencies:
  tinyusb: "~0.15.1" # Automatically update bugfix releases. TinyUSB does not guarantee backward compatibility

Or simply run:

idf.py add-dependency "tinyusb~0.15.1"

README from the upstream TinyUSB can be found in hathach/tinyusb/README.