Adding modules in folders other than components folder

Ali_Makhlouf
Posts: 8
Joined: Mon Dec 13, 2021 3:49 pm

Adding modules in folders other than components folder

Postby Ali_Makhlouf » 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.

ESP_Sprite
Posts: 9580
Joined: Thu Nov 26, 2015 4:08 am

Re: Adding modules in folders other than components folder

Postby ESP_Sprite » Wed Jun 01, 2022 8:08 am

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: Baidu [Spider], Majestic-12 [Bot] and 215 guests