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.
Adding modules in folders other than components folder
-
- Posts: 8
- Joined: Mon Dec 13, 2021 3:49 pm
-
- Posts: 9713
- Joined: Thu Nov 26, 2015 4:08 am
Re: Adding modules in folders other than components folder
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?
Who is online
Users browsing this forum: iwanttolearn and 54 guests