We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c34702f + ed46ec4 commit 3ecfa81Copy full SHA for 3ecfa81
components/esp_rom/patches/esp_rom_gpio.c
@@ -1,5 +1,5 @@
1
/*
2
- * SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
+ * SPDX-FileCopyrightText: 2024-2025 Espressif Systems (Shanghai) CO LTD
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
@@ -23,6 +23,10 @@ IRAM_ATTR __attribute__((optimize("-Os"))) void esp_rom_gpio_connect_out_signal(
23
}
24
REG_WRITE(GPIO_FUNC0_OUT_SEL_CFG_REG + (gpio_num * 4), value);
25
26
- REG_WRITE(GPIO_ENABLE_W1TS_REG, (1 << gpio_num));
+ if (gpio_num < 32) {
27
+ REG_WRITE(GPIO_ENABLE_W1TS_REG, (1 << gpio_num));
28
+ } else {
29
+ REG_WRITE(GPIO_ENABLE1_W1TS_REG, (1 << (gpio_num - 32)));
30
+ }
31
32
#endif
0 commit comments