diff -r 68404c07aa2b -r ac6ad7bd55c3 components/spidriver/spi_master_lobo.c --- a/components/spidriver/spi_master_lobo.c Sat Jun 29 14:03:00 2024 +0200 +++ b/components/spidriver/spi_master_lobo.c Sat Jun 29 16:09:03 2024 +0200 @@ -67,11 +67,14 @@ #include "esp_log.h" #include "esp_err.h" #include "freertos/semphr.h" +#if ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5, 2, 0) #include "freertos/xtensa_api.h" +#else +#include +#endif #include "freertos/task.h" #include "driver/uart.h" #include "driver/gpio.h" -//#include "driver/periph_ctrl.h" #include "esp_private/periph_ctrl.h" #include "esp_heap_caps.h" #include "spi_master_lobo.h"