mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/i80_lcd_reset_gpio_config_v5.0' into 'release/v5.0'
fix(i80_lcd): reset cs gpio on exit (v5.0) See merge request espressif/esp-idf!25244
This commit is contained in:
commit
c7a5b3c948
@ -337,6 +337,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);
|
||||
|
@ -328,6 +328,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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user