components/spidriver/spi_master_lobo.c

branch
idf 5.1
changeset 140
ac6ad7bd55c3
parent 129
31f9d3e4a85f
--- 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 <xtensa_api.h>
+#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"

mercurial