Hi all!
I am working with ststm32 / stm32cube project - and all is nice.
I am using the Stm32CubeMX tool from ST-Link to create initialization files, and include those files to ./src/stm32cubemx/
And i am using FreeRTOS to provided stuff, included now in ./src/FreeRTOS/
The project compiles fine when i have all placed under the ./src/ and adjust the include flags properly ( -I./src/FreeRTOS/include/ -I./src/FreeRTOS/portable/GCC/ARM_CM4F/ -I./src/FreeRTOS/CMSIS_RTOS/) and (-I./src/stm32cubemx/).
Now what i would love to see, is that i could place these “messy” files to ./lib/.
Now in my opinion it would be clean solution: craft ./lib/FreeRTOS/library.json (and ./lib/stm32cubemx/library.json) that would declare all these include directories - but based on my trial-n-error it does not work.
Should it work? Are there other ways to include “private & local” - libraries with some extra flags ("-I…")
And just to continue questioning futher: what is the best way to have the FreeRTOSConfig.h file (and portmacro.h) that are more kind of part of the project than the library (since they are config files) – and the library depends on them, so placing them in the ./src/ will not work?
Thanks,
Pauli