Remove the need for rom includes while providing IDF v5 compatibility

This commit is contained in:
Rashed Talukder 2022-03-18 19:09:01 -07:00
parent 44342b653f
commit b64d5745db
3 changed files with 24 additions and 2 deletions

View file

@ -263,7 +263,11 @@ void TFT_bitmap_display(void)
void FT81x_init(void)
{
#if EVE_USE_PDN
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 0, 0)
esp_rom_gpio_pad_select_gpio(EVE_PDN);
#else
gpio_pad_select_gpio(EVE_PDN);
#endif
#endif
gpio_set_level(EVE_CS, 1);