65 #include "esp_types.h" |
65 #include "esp_types.h" |
66 #include "esp_attr.h" |
66 #include "esp_attr.h" |
67 #include "esp_log.h" |
67 #include "esp_log.h" |
68 #include "esp_err.h" |
68 #include "esp_err.h" |
69 #include "freertos/semphr.h" |
69 #include "freertos/semphr.h" |
|
70 #if ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5, 2, 0) |
70 #include "freertos/xtensa_api.h" |
71 #include "freertos/xtensa_api.h" |
|
72 #else |
|
73 #include <xtensa_api.h> |
|
74 #endif |
71 #include "freertos/task.h" |
75 #include "freertos/task.h" |
72 #include "driver/uart.h" |
76 #include "driver/uart.h" |
73 #include "driver/gpio.h" |
77 #include "driver/gpio.h" |
74 //#include "driver/periph_ctrl.h" |
|
75 #include "esp_private/periph_ctrl.h" |
78 #include "esp_private/periph_ctrl.h" |
76 #include "esp_heap_caps.h" |
79 #include "esp_heap_caps.h" |
77 #include "spi_master_lobo.h" |
80 #include "spi_master_lobo.h" |
78 |
81 |
79 #include "rom/gpio.h" |
82 #include "rom/gpio.h" |