mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-06-01 16:16:54 +08:00
bugfix(gpio): Repair GPIO interrupt function
Because the interrupt structure of esp8266 and esp32 is not the same, the following functions need to be deleted * Delete the gpio_intr_enable() and gpio_intr_disable() functions Related issues * Fixes https://github.com/espressif/ESP8266_RTOS_SDK/issues/282 * Fixes https://github.com/espressif/ESP8266_RTOS_SDK/issues/284
This commit is contained in:
@ -77,7 +77,7 @@ void app_main(void)
|
||||
io_conf.intr_type = GPIO_INTR_DISABLE;
|
||||
//set as output mode
|
||||
io_conf.mode = GPIO_MODE_OUTPUT;
|
||||
//bit mask of the pins that you want to set,e.g.GPIO18/19
|
||||
//bit mask of the pins that you want to set,e.g.GPIO15/16
|
||||
io_conf.pin_bit_mask = GPIO_OUTPUT_PIN_SEL;
|
||||
//disable pull-down mode
|
||||
io_conf.pull_down_en = 0;
|
||||
|
Reference in New Issue
Block a user