SuperHouse / esp-open-rtos

Open source FreeRTOS-based ESP8266 software framework
BSD 3-Clause "New" or "Revised" License
1.53k stars 491 forks source link

#include_next work for other component ? #540

Open Zaltora opened 6 years ago

Zaltora commented 6 years ago

I want to implement a component that need be customized by the user. I want to take the same system as FreeRTOS with FreeRTOSConfig.h.

So i use in my lib a config file: ComponentConfig.h I create in my example a file : ComponentConfig.h (with include_next) I include this file in my main.c file. But, the change in this file are not taken into account when compilation ( even with rebuild try )

I suppose the problem from the compiler order. Extras component are compiled before the app ? How i can solve this ? What can be the best alternative to this system if not.

UncleRus commented 6 years ago

Is this necessarily an #include_next? You can redefine parameters using Makefile variables like in extras/fatfs or extras/fonts.

Zaltora commented 6 years ago

i will do this. But I'm still wondering why we can not use #include_next with anything other than the FreeRTOSConfig.h file