tinyusb
|
tinyusb uses github as online repository https://github.com/hathach/tinyusb since it is the best place for open source project.
If you are using Linux, you already know how to what to do. But If Windows is your OS, I would suggest to install git and front-end gui such as tortoisegit to begin with.
After downloading/cloning, the code base is composed of
Folder | Description |
---|---|
boards | Source files of supported boards |
demos | Source & project files for demonstration application |
docs | Documentation |
mcu | Low level mcu core & peripheral drivers (e.g CMSIS ) |
tests | Unit tests for the stack |
tinyusb | All sources files for tinyusb stack itself. |
vendor | Source files from 3rd party such as freeRTOS, fatfs etc ... |
*/demos* is the folder where all the application & project files are located. There are demos for both device and hosts. For each, there are different projects for each of supported RTOS.
In order to build and run application demo, you would need
To prevent any sort of problems, it is recommended to do EXACTLY as follows (esp the item 4)
It is relatively simple for Keil
IAR is just as easy as Keil
Application demo is written to have the code excluded if its required option is not enabled in [tusb_config.h](). Some of combination may exceed the 32KB limit of IAR/Keil so you may want to re-configure to disable some class support, decrease TUSB_CFG_DEBUG or increase the compiler optimization level.
In addition, there are some configuration you can change such as