Using a different FreeRTOSConfig file in project

Hi all,

I’m relatively new to PlatformIO and learning about 32bit mcu’s and RTOS. I’m trying to adjust some settings in FreeRTOSConfig.h to utilise the Idle Hook function. I know I needed to make 2 changes for this to work - configUSE_IDLE_HOOK (which I’m pretty sure I can set using build flags); and configIDLE_SHOULD_YIELD which is a set value - I edited this manually and my project worked.

I’m curious if I’d have to edit the main FreeRTOSConfig.h file for each project or if it is possible to have the compiler use a different copy of the config file, one included in my source directoriy? In the FreeRTOS examples the config file seems to be included in the /src file along witth main.c which makes sense for an application specific file. I suspect there’s a way to do it using library.json but have no clue where to start.

Please excuse me if I’ve misunderstood any core concepts here, I’m new and self-taught and there are some awkward concepts to grasp! Thanks.

What MCU and framework are you programming for exactly? esp8266-rtos-sdk?

I’m programming the ESP32 (heltek Lora dev board) using the esp-idf framework.