espidf 5.1 vs 4.x fixes

This commit is contained in:
mrfaptastic 2023-11-27 03:26:41 +00:00
parent 7a100a0a35
commit ad5e2338d0
2 changed files with 10 additions and 0 deletions

View file

@ -31,7 +31,11 @@ Modified heavily for the ESP32 HUB75 DMA library by:
#endif
#include <driver/gpio.h>
#if (ESP_IDF_VERSION_MAJOR == 5)
#include <esp_private/periph_ctrl.h>
#else
#include <driver/periph_ctrl.h>
#endif
#include <soc/gpio_sig_map.h>
#include <soc/i2s_periph.h> //includes struct and reg

View file

@ -46,7 +46,13 @@ Contributors:
//#include <driver/i2s.h>
#include <rom/lldesc.h>
#include <rom/gpio.h>
#if (ESP_IDF_VERSION_MAJOR == 5)
#include <driver/i2s_types.h> //includes struct and reg
#else
#include <driver/i2s.h>
#include <soc/i2s_struct.h>
#endif
#include <soc/i2s_periph.h> //includes struct and reg