diff --git a/docs/en/api-reference/peripherals/gpio/esp32c2.inc b/docs/en/api-reference/peripherals/gpio/esp32c2.inc index 4a428d082d..a4de5c128e 100644 --- a/docs/en/api-reference/peripherals/gpio/esp32c2.inc +++ b/docs/en/api-reference/peripherals/gpio/esp32c2.inc @@ -109,8 +109,8 @@ The table below provides more information on pin usage, and please note the comm .. note:: - - Strapping pin: GPIO8 and GPIO9 are strapping pins. For more infomation, please refer to `ESP8684 datasheet `_. + - Strapping pin: GPIO8 and GPIO9 are strapping pins. For more information, please refer to `ESP8684 datasheet `_. - SPI0/1: GPIO12-17 are usually used for SPI flash and not recommended for other uses. - - RTC: GPIO0-5 can be used when in Deep-sleep mode. + - RTC: GPIO0-5 can be used to wake up the chip from Deep-sleep mode. Other GPIOs can only wake up the chip from Light-sleep mode. For more information, please refer to Section :ref:`Wakeup Sources`. --- diff --git a/docs/en/api-reference/peripherals/gpio/esp32c3.inc b/docs/en/api-reference/peripherals/gpio/esp32c3.inc index d6d1f5d966..e27a5dbc92 100644 --- a/docs/en/api-reference/peripherals/gpio/esp32c3.inc +++ b/docs/en/api-reference/peripherals/gpio/esp32c3.inc @@ -112,9 +112,9 @@ The table below provides more information on pin usage, and please note the comm .. note:: - - Strapping pin: GPIO2, GPIO8 and GPIO9 are strapping pins. For more infomation, please refer to `ESP32-C3 datasheet <{IDF_TARGET_DATASHEET_EN_URL}>`_. + - Strapping pin: GPIO2, GPIO8 and GPIO9 are strapping pins. For more information, please refer to `ESP32-C3 Datasheet <{IDF_TARGET_DATASHEET_EN_URL}>`_. - SPI0/1: GPIO12-17 are usually used for SPI flash and PSRAM and are not recommended for other uses. - USB-JTAG: GPIO 18 and 19 are used by USB-JTAG by default. In order to use them as GPIOs, USB-JTAG will be disabled by the drivers. - - RTC: GPIO0-5 can be used when in Deep-sleep mode. + - RTC: GPIO0-5 can be used to wake up the chip from Deep-sleep mode. Other GPIOs can only wake up the chip from Light-sleep mode. For more information, please refer to Section :ref:`Wakeup Sources`. --- diff --git a/docs/en/api-reference/peripherals/gpio/esp32h2.inc b/docs/en/api-reference/peripherals/gpio/esp32h2.inc index eb52c533d3..8e8a91d342 100644 --- a/docs/en/api-reference/peripherals/gpio/esp32h2.inc +++ b/docs/en/api-reference/peripherals/gpio/esp32h2.inc @@ -51,35 +51,35 @@ The table below provides more information on pin usage, and please note the comm * - GPIO7 - - - + - RTC * - GPIO8 - - - Strapping pin + - Strapping pin, RTC * - GPIO9 - - - Strapping pin + - Strapping pin, RTC * - GPIO10 - Analog comparator reference voltage - - + - RTC * - GPIO11 - Analog comparator input (non-inverting) - - + - RTC * - GPIO12 - - - + - RTC * - GPIO13 - - - + - RTC * - GPIO14 - - - + - RTC * - GPIO15 - @@ -135,10 +135,11 @@ The table below provides more information on pin usage, and please note the comm .. note:: - - Strapping pin: GPIO2, GPIO3, GPIO8, GPIO9, and GPIO25 are strapping pins. For more infomation, please refer to `ESP32H2 datasheet <{IDF_TARGET_DATASHEET_EN_URL}>`_. + - Strapping pin: GPIO2, GPIO3, GPIO8, GPIO9, and GPIO25 are strapping pins. For more information, please refer to `ESP32H2 datasheet <{IDF_TARGET_DATASHEET_EN_URL}>`_. - SPI0/1: GPIO15-21 are usually used for SPI flash and not recommended for other uses. - USB-Serial-JTAG: GPIO 26 and 27 are used by USB-Serial-JTAG by default. In order to use them as GPIOs, USB-Serial-JTAG will be disabled by the drivers. - For chip variants with an SiP flash built in, GPIO15 ~ GPIO21 are dedicated to connecting the SiP flash and are not fan-out to the external pins. In addition, GPIO6 ~ GPIO7 are also not fan-out to the external pins. In conclusion, only GPIO0~ GPIO5, GPIO8~ GPIO14, GPIO22~ GPIO27 are available to users. - For chip variant without SiP flash, apart from the flash IOs mentioned above, GPIO22 is not fan-out to the external pin, thus they're not available to users. + - RTC: GPIO7-14 can be used to wake up the chip from Deep-sleep mode. Other GPIOs can only wake up the chip from Light-sleep mode. For more information, please refer to Section :ref:`Wakeup Sources`. --- diff --git a/docs/en/api-reference/system/sleep_modes.rst b/docs/en/api-reference/system/sleep_modes.rst index f6ca30e172..cd8da38324 100644 --- a/docs/en/api-reference/system/sleep_modes.rst +++ b/docs/en/api-reference/system/sleep_modes.rst @@ -42,6 +42,8 @@ Once wakeup sources are configured, the application can enter sleep mode using : If Wi-Fi connections need to be maintained, enable Wi-Fi Modem-sleep mode and automatic Light-sleep feature (see :doc:`Power Management APIs `). This will allow the system to wake up from sleep automatically when required by the Wi-Fi driver, thereby maintaining a connection to the AP. +.. _api-reference-wakeup-source: + Wakeup Sources -------------- diff --git a/docs/zh_CN/api-reference/peripherals/gpio/esp32c2.inc b/docs/zh_CN/api-reference/peripherals/gpio/esp32c2.inc index b245efbea3..8df52364cf 100644 --- a/docs/zh_CN/api-reference/peripherals/gpio/esp32c2.inc +++ b/docs/zh_CN/api-reference/peripherals/gpio/esp32c2.inc @@ -111,6 +111,6 @@ - Strapping 管脚:GPIO8 和 GPIO9 是 Strapping 管脚。更多信息请参考 `ESP8684 技术规格书 <{IDF_TARGET_DATASHEET_CN_URL}>`_。 - SPI0/1:GPIO12-17 通常用于 SPI flash,不推荐用于其他用途。 - - RTC:GPIO0-5 可以在 Deep-sleep 模式时使用。 + - RTC:GPIO0-5 可用于将芯片从 Deep-sleep 模式中唤醒,其他 GPIO 仅能将芯片从 Light-sleep 模式中唤醒。更多信息请参考 :ref:`唤醒源` 章节。 --- diff --git a/docs/zh_CN/api-reference/peripherals/gpio/esp32c3.inc b/docs/zh_CN/api-reference/peripherals/gpio/esp32c3.inc index 1158d3839a..04acf15421 100644 --- a/docs/zh_CN/api-reference/peripherals/gpio/esp32c3.inc +++ b/docs/zh_CN/api-reference/peripherals/gpio/esp32c3.inc @@ -114,6 +114,6 @@ - Strapping 管脚:GPIO2、GPIO8、和 GPIO9 是 Strapping 管脚。更多信息请参考 `ESP32-C3 技术规格书 <{IDF_TARGET_DATASHEET_CN_URL}>`_。 - SPI0/1:GPIO12-17 通常用于 SPI flash 和 PSRAM,不推荐用于其他用途。 - USB-JTAG:GPIO18 和 GPIO19 默认用于 USB-JTAG。用做 GPIO 时驱动程序将禁用 USB-JTAG。 - - RTC:GPIO0-5 可以在 Deep-sleep 模式时使用。 + - RTC:GPIO0-5 可用于将芯片从 Deep-sleep 模式中唤醒,其他 GPIO 仅能将芯片从 Light-sleep 模式中唤醒。更多信息请参考 :ref:`唤醒源` 章节。 --- diff --git a/docs/zh_CN/api-reference/peripherals/gpio/esp32h2.inc b/docs/zh_CN/api-reference/peripherals/gpio/esp32h2.inc index d138978d00..62d6b7a0d3 100644 --- a/docs/zh_CN/api-reference/peripherals/gpio/esp32h2.inc +++ b/docs/zh_CN/api-reference/peripherals/gpio/esp32h2.inc @@ -53,35 +53,35 @@ * - GPIO7 - - - + - RTC * - GPIO8 - - - Strapping 管脚 + - Strapping 管脚,RTC * - GPIO9 - - - Strapping 管脚 + - Strapping 管脚,RTC * - GPIO10 - 模拟比较器外部参考电压 - - + - RTC * - GPIO11 - 模拟比较器同相输入 - - + - RTC * - GPIO12 - - - + - RTC * - GPIO13 - - - + - RTC * - GPIO14 - - - + - RTC * - GPIO15 - @@ -142,5 +142,6 @@ - USB-Serial-JTAG: GPIO26 和 GPIO27 默认用于 USB-Serial-JTAG。用做 GPIO 时驱动程序将禁用 USB-Serial-JTAG。 - 对于合封了 flash 的芯片型号, GPIO15 ~ GPIO21 专门用于连接该 flash, 并未引出至芯片管脚。且 GPIO6 ~ GPIO7 也未引出至芯片管脚,用户不可用。用户可配置使用其他剩余的 19 个 GPIO 管脚, 编号为: GPIO0 ~ GPIO5、GPIO8 ~ GPIO14、GPIO22 ~ GPIO27。 - 对于未合封 flash 的芯片型号, 除了以上提到的给 Flash 专用的 GPIO 以外, GPIO22 也并未引出至芯片管脚,用户不可用。 + - RTC:GPIO7-14 可用于将芯片从 Deep-sleep 模式中唤醒,其他 GPIO 仅能将芯片从 Light-sleep 模式中唤醒。更多信息请参考 :ref:`唤醒源` 章节。 --- diff --git a/docs/zh_CN/api-reference/system/sleep_modes.rst b/docs/zh_CN/api-reference/system/sleep_modes.rst index 2d68ceb21c..c6a0cb75fe 100644 --- a/docs/zh_CN/api-reference/system/sleep_modes.rst +++ b/docs/zh_CN/api-reference/system/sleep_modes.rst @@ -42,6 +42,8 @@ Light-sleep 和 Deep-sleep 模式有多种唤醒源。这些唤醒源也可以 如需保持 Wi-Fi 连接,请启用 Wi-Fi Modem-sleep 模式和自动 Light-sleep 模式(请参阅 :doc:`电源管理 API `)。在这两种模式下,Wi-Fi 驱动程序发出请求时,系统将自动从睡眠中被唤醒,从而保持与 AP 的连接。 +.. _api-reference-wakeup-source: + 唤醒源 ---------