ESP8266_RTOS_SDK-3.2/examples/peripherals/gpio
保持代码不变:编译,程序可以运行
修改代码:
以前:
#define GPIO_OUTPUT_IO_0 15
#define GPIO_OUTPUT_IO_1 16
#define GPIO_OUTPUT_PIN_SEL ((1ULL<<GPIO_OUTPUT_IO_0) | (GPIO_OUTPUT_IO_1 ))
修改后:
#define GPIO_OUTPUT_IO_0 10
#define GPIO_OUTPUT_PIN_SEL ((1ULL<<GPIO_OUTPUT_IO_0))
最后会卡死在: gpio_config(&io_conf);
其内部其实卡死在:
WRITE_PERI_REG(GPIO_PIN_REG(io_num), pin_reg.val);
为什么呢?
ESP8266 RTOS 3.2 GPIO example
Who is online
Users browsing this forum: No registered users and 272 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.