espidf 5.1 vs 4.x fixes
This commit is contained in:
parent
7a100a0a35
commit
ad5e2338d0
2 changed files with 10 additions and 0 deletions
|
@ -31,7 +31,11 @@ Modified heavily for the ESP32 HUB75 DMA library by:
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <driver/gpio.h>
|
#include <driver/gpio.h>
|
||||||
|
#if (ESP_IDF_VERSION_MAJOR == 5)
|
||||||
#include <esp_private/periph_ctrl.h>
|
#include <esp_private/periph_ctrl.h>
|
||||||
|
#else
|
||||||
|
#include <driver/periph_ctrl.h>
|
||||||
|
#endif
|
||||||
#include <soc/gpio_sig_map.h>
|
#include <soc/gpio_sig_map.h>
|
||||||
#include <soc/i2s_periph.h> //includes struct and reg
|
#include <soc/i2s_periph.h> //includes struct and reg
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,13 @@ Contributors:
|
||||||
//#include <driver/i2s.h>
|
//#include <driver/i2s.h>
|
||||||
#include <rom/lldesc.h>
|
#include <rom/lldesc.h>
|
||||||
#include <rom/gpio.h>
|
#include <rom/gpio.h>
|
||||||
|
#if (ESP_IDF_VERSION_MAJOR == 5)
|
||||||
#include <driver/i2s_types.h> //includes struct and reg
|
#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
|
#include <soc/i2s_periph.h> //includes struct and reg
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue