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
pull/4273/head
Romain 2019-10-27 14:39:36 +01:00 zatwierdzone przez kooho
rodzic 758db1e008
commit 5491365874
2 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -23,6 +23,7 @@
#include "driver/sdmmc_host.h"
#include "driver/periph_ctrl.h"
#include "sdmmc_private.h"
#include "freertos/FreeRTOS.h"
#include "freertos/semphr.h"
#include "soc/sdmmc_periph.h"