Skip to content
forked from hathach/tinyusb

Fork of tinyusb project with Espressif-specific patches.

License

Notifications You must be signed in to change notification settings

espressif/tinyusb

Folders and files

NameName
Last commit message
Last commit date
Apr 26, 2023
Jul 12, 2023
Jul 3, 2023
May 10, 2023
Jun 27, 2023
Jul 3, 2023
Jun 14, 2023
Mar 28, 2024
Jun 27, 2023
Jul 1, 2023
Mar 17, 2023
Mar 17, 2023
Jun 20, 2023
May 23, 2023
May 10, 2023
Jan 10, 2024
Jul 30, 2021
Jun 2, 2022
Mar 20, 2019
Jul 12, 2023
Jan 19, 2024
Jan 10, 2024
May 7, 2020
Feb 10, 2023
Jul 12, 2023
Jul 12, 2023

Repository files navigation

Espressif TinyUSB fork

This is a fork of upstream TinyUSB with integration into ESP-IDF build system. It is used mostly for rapid bugfixing and for releases independent from the upstream project. We try to push all bugfixes and features to the upstream.

How to use

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

1. Use this component together with Espressif TinyUSB additions

This is identical approach as in ESP-IDF 4.x releases. You can configure TinyUSB using Kconfig, as usual. Just 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"

2. Use TinyUSB only, without the additions

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.

About

Fork of tinyusb project with Espressif-specific patches.

Resources

License

Stars

Watchers

Forks

Languages

  • C 94.0%
  • CMake 2.5%
  • Makefile 1.4%
  • Python 1.0%
  • C++ 0.6%
  • Assembly 0.5%