doc: update tinyusb document to support esp32s3

1. Renamed SOC_USB_SUPPORTED to SOC_USB_OTG_SUPPORTED for the reason of
   another USB related peripheral: USB_JTAG_SERIAL
2. correct related document
This commit is contained in:
morris
2021-06-30 16:04:37 +08:00
parent 42f3bca5a1
commit 2218204aa7
14 changed files with 26 additions and 19 deletions

View File

@@ -33,6 +33,6 @@ Peripherals API
:esp32s2: Touch Element <touch_element>
TWAI <twai>
UART <uart>
:SOC_USB_SUPPORTED: USB <usb>
:SOC_USB_OTG_SUPPORTED: USB Device <usb_device>
Code examples for this API section are provided in the :example:`peripherals` directory of ESP-IDF examples.

View File

@@ -1,6 +1,9 @@
USB Driver
==========
USB Device Driver
=================
{IDF_TARGET_USB_DP_GPIO_NUM:default="20"}
{IDF_TARGET_USB_DM_GPIO_NUM:default="19"}
Overview
--------
@@ -21,12 +24,14 @@ Hardware USB Connection
- Any board with the {IDF_TARGET_NAME} chip with USB connectors or with exposed USB's D+ and D- (DATA+/DATA-) pins.
If the board has no USB connector but has the pins, connect pins directly to the host (e.g. with do-it-yourself cable from any USB connection cable). For example, connect GPIO19/20 to D-/D+ respectively for an ESP32-S2 board:
If the board has no USB connector but has the pins, connect pins directly to the host (e.g. with do-it-yourself cable from any USB connection cable).
On {IDF_TARGET_NAME}, connect GPIO {IDF_TARGET_USB_DP_GPIO_NUM} and {IDF_TARGET_USB_DM_GPIO_NUM} to D+/D- respectively:
.. figure:: ../../../_static/usb-board-connection.png
:align: center
:alt: Connection of a board to a host ESP32-S2
:alt: Connection of a board to a host ESP chip
:figclass: align-center
Driver Structure