Page 1 of 1

Adding modules in folders other than components folder

Posted: Wed Jun 01, 2022 8:00 am
by Ali_Makhlouf
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.

Re: Adding modules in folders other than components folder

Posted: Wed Jun 01, 2022 8:08 am
by ESP_Sprite
Just to make sure I understand what the issue is: you mean that you have stuff in your other components that call functions in your main component?

Re: Adding modules in folders other than components folder

Posted: Wed Jun 01, 2022 10:59 am
by chegewara