8000 fix gpio_config from https://github.com/espressif/ESP8266_RTOS_SDK/pu… · dsptech/ESP8266_RTOS_SDK@68b644e · GitHub
[go: up one dir, main page]

Skip to content

Commit 68b644e

Browse files
committed
fix gpio_config from espressif#1071
1 parent e6bf40d commit 68b644e

File tree

1 file changed

+5
-2
lines changed
  • components/esp8266/driver

1 file changed

+5
-2
lines changed

components/esp8266/driver/gpio.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,11 @@ esp_err_t gpio_config(const gpio_config_t *gpio_cfg)
334334
// It should be noted that GPIO0, 2, 4, and 5 need to set the func register to 0,
335335
// and the other GPIO needs to be set to 3 so that IO can be GPIO function.
336336
if ((0x1 << io_num) & (GPIO_Pin_0 | GPIO_Pin_2 | GPIO_Pin_4 | GPIO_Pin_5)) {
337-
pin_reg.rtc_pin.func_low_bit = 0;
338-
pin_reg.rtc_pin.func_high_bit = 0;
337+
/*
338+
* Fix from https://github.com/espressif/ESP8266_RTOS_SDK/pull/1071
339+
*/
340+
pin_reg.func_low_bit = 0;
341+
pin_reg.func_high_bit = 0;;
339342
} else {
340343
pin_reg.func_low_bit = 3;
341344
pin_reg.func_high_bit = 0;

0 commit comments

Comments
 (0)
0