esp32-s2_dfu/doxygen/getting_started.md

48 lines
2.0 KiB
Markdown
Raw Normal View History

# Getting Started #
2014-03-26 09:32:44 +01:00
2014-03-28 11:05:01 +01:00
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
**Table of Contents**
- [Download](#download)
2014-04-14 19:10:01 +02:00
- [Add tinyusb to your project](#add-tinyusb-to-your-project)
2014-03-28 11:05:01 +01:00
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
2014-04-14 19:10:01 +02:00
## Download
2014-03-26 09:32:44 +01:00
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](http://git-scm.com/) and front-end gui such as [tortoisegit](http://code.google.com/p/tortoisegit) to begin with.
After downloading/cloning, the code base is composed of
Folder | Description
----- | -------------
2014-04-14 19:10:01 +02:00
boards | Source files of supported boards
demos | Source & project files for demonstration application
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 ...
2014-03-26 09:32:44 +01:00
*repo/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.
2014-03-26 09:32:44 +01:00
2014-04-14 19:10:01 +02:00
## Add tinyusb to your project
It is relatively simple to incorporate tinyusb to your (existing) project
2014-04-15 07:51:32 +02:00
1. Copy core folder **repo/tinyusb** to your project. Let's say it is *your_project/tinyusb*
2014-04-14 19:10:01 +02:00
2. Add all the .c in the core folder to your project settings (uvproj, ewp, makefile)
3. Add *your_project/tinysb* to your include path. Also make sure your current include path also contains the configuration file tusb_config.h. Or you could simply put the tusb_config.h into the tinyusb folder as well.
4. Make sure all required macros such as TUSB_CFG_MCU are all defined properly in tusb_config.h.
2014-03-26 09:32:44 +01:00
\subpage md_boards_readme
2014-04-14 19:10:01 +02:00
\subpage md_doxygen_started_build_demo
2014-04-14 19:10:01 +02:00
2014-04-15 07:51:32 +02:00
\subpage md_doxygen_started_run_demo
\subpage md_doxygen_tools