diff --git a/src/esp32_i2s_parallel.c b/src/esp32_i2s_parallel.c index e4db0b1..3a78d31 100644 --- a/src/esp32_i2s_parallel.c +++ b/src/esp32_i2s_parallel.c @@ -32,6 +32,11 @@ #include "esp_heap_caps.h" #include "esp32_i2s_parallel.h" +#ifndef GPIO_PIN_MUX_REG +#include "soc/gpio_periph.h" +#include "esp32-hal.h" +#endif + typedef struct { volatile lldesc_t *dmadesc_a, *dmadesc_b; int desccount_a, desccount_b;