Adding modules in folders other than components folder
Posted: Wed Jun 01, 2022 8:00 am
Hello
I am trying to make a project with different sw layers (app(eg. main.c), components(eg. lvgl, ssd1963..etc) , mcal(eg. I2C, UART..etc), driver(mcu vendor I2C)). each layers has its own modules(.h .c). But the main.c is programmed by the esp-idf to only see the components folder and other components are not visible to it unless I add the path to every .c & .h in them. So the only solution to it is to add all my modules in all the layers in the components folder.
Is there another approach to keep the architecture of the file system the same that I use (make the other files -DRIVE,MCAL,- visible to main as well)?
thanks.
I am trying to make a project with different sw layers (app(eg. main.c), components(eg. lvgl, ssd1963..etc) , mcal(eg. I2C, UART..etc), driver(mcu vendor I2C)). each layers has its own modules(.h .c). But the main.c is programmed by the esp-idf to only see the components folder and other components are not visible to it unless I add the path to every .c & .h in them. So the only solution to it is to add all my modules in all the layers in the components folder.
Is there another approach to keep the architecture of the file system the same that I use (make the other files -DRIVE,MCAL,- visible to main as well)?
thanks.