forked from espressif/esp-idf
feat(esp32h21): support GPIO on esp32h21
This commit is contained in:
@@ -23,10 +23,10 @@ This test code shows how to configure GPIO and how to use it with interruption.
|
||||
|
||||
**Note:** The following pin assignments are used by default, you can change them by `idf.py menuconfig` > `Example Configuration`.
|
||||
|
||||
| | CONFIG_GPIO_OUTPUT_0 | CONFIG_GPIO_OUTPUT_1 | CONFIG_GPIO_INPUT_0 | CONFIG_GPIO_INPUT_1 |
|
||||
| ---------------------- | -------------------- | -------------------- | ------------------- | ------------------- |
|
||||
| ESP32C2/ESP32H2 | 8 | 9 | 4 | 5 |
|
||||
| All other chips | 18 | 19 | 4 | 5 |
|
||||
| | CONFIG_GPIO_OUTPUT_0 | CONFIG_GPIO_OUTPUT_1 | CONFIG_GPIO_INPUT_0 | CONFIG_GPIO_INPUT_1 |
|
||||
| ------------------------- | -------------------- | -------------------- | ------------------- | ------------------- |
|
||||
| ESP32C2/H2/C5/C61/H21 | 8 | 9 | 4 | 5 |
|
||||
| All other chips | 18 | 19 | 4 | 5 |
|
||||
|
||||
## How to use example
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ menu "Example Configuration"
|
||||
int "GPIO output pin 0"
|
||||
range ENV_GPIO_RANGE_MIN ENV_GPIO_OUT_RANGE_MAX
|
||||
default 8 if IDF_TARGET_ESP32C2 || IDF_TARGET_ESP32H2 || IDF_TARGET_ESP32C5 || IDF_TARGET_ESP32C61
|
||||
default 8 if IDF_TARGET_ESP32H21
|
||||
default 18
|
||||
help
|
||||
GPIO pin number to be used as GPIO_OUTPUT_IO_0.
|
||||
@@ -14,6 +15,7 @@ menu "Example Configuration"
|
||||
int "GPIO output pin 1"
|
||||
range ENV_GPIO_RANGE_MIN ENV_GPIO_OUT_RANGE_MAX
|
||||
default 9 if IDF_TARGET_ESP32C2 || IDF_TARGET_ESP32H2 || IDF_TARGET_ESP32C5 || IDF_TARGET_ESP32C61
|
||||
default 9 if IDF_TARGET_ESP32H21
|
||||
default 19
|
||||
help
|
||||
GPIO pin number to be used as GPIO_OUTPUT_IO_1.
|
||||
|
||||
Reference in New Issue
Block a user