Fix build error semphr.h:74:3: error: #error "include FreeRTOS.h" must appear in source files before "include semphr.h"

FreeRTOS.h must always be included before semphr.h

Merges https://github.com/espressif/esp-idf/pull/4251
This commit is contained in:
Romain
2019-10-28 12:21:26 +08:00
committed by kooho
parent 758db1e008
commit 5491365874
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -25,6 +25,7 @@
#include "esp_intr_alloc.h"
#include "driver/periph_ctrl.h"
#include "driver/adc.h"
#include "freertos/FreeRTOS.h"
#include "freertos/semphr.h"
#ifdef __cplusplus