kopia lustrzana https://github.com/espressif/esp-idf
Merge branch 'bugfix/i80_lcd_reset_gpio_config_v4.4' into 'release/v4.4'
fix(i80_lcd): reset cs gpio on exit (v4.4) See merge request espressif/esp-idf!25245pull/12186/head
commit
1efa7866ec
|
@ -331,6 +331,11 @@ static esp_err_t panel_io_i80_del(esp_lcd_panel_io_t *io)
|
|||
LIST_REMOVE(i80_device, device_list_entry);
|
||||
portEXIT_CRITICAL(&bus->spinlock);
|
||||
|
||||
// reset CS GPIO
|
||||
if (i80_device->cs_gpio_num >= 0) {
|
||||
gpio_reset_pin(i80_device->cs_gpio_num);
|
||||
}
|
||||
|
||||
ESP_LOGD(TAG, "del i80 lcd panel io @%p", i80_device);
|
||||
vQueueDelete(i80_device->trans_queue);
|
||||
vQueueDelete(i80_device->done_queue);
|
||||
|
|
|
@ -322,6 +322,11 @@ static esp_err_t panel_io_i80_del(esp_lcd_panel_io_t *io)
|
|||
LIST_REMOVE(i80_device, device_list_entry);
|
||||
portEXIT_CRITICAL(&bus->spinlock);
|
||||
|
||||
// reset CS to normal GPIO
|
||||
if (i80_device->cs_gpio_num >= 0) {
|
||||
gpio_reset_pin(i80_device->cs_gpio_num);
|
||||
}
|
||||
|
||||
ESP_LOGD(TAG, "del i80 lcd panel io @%p", i80_device);
|
||||
vQueueDelete(i80_device->trans_queue);
|
||||
vQueueDelete(i80_device->done_queue);
|
||||
|
|
Ładowanie…
Reference in New Issue