[In]consistency of component directories
Posted: Tue Feb 07, 2017 9:09 am
I have noticed that, in spite of the clear guidelines provided in "build-system.rst" regarding the relationship between components and their include files, that a number of directories in "esp-idf/components/" do not follow the guideline.
Some of these situations, like libcoap, makes sense in order to maintain the original structure. Others, such as "components/driver" and "components/freertos" does not make sense to me.
"components/drivers/include" does not include any includes, but only has a subdir, again called "driver" that includes the actual header files.
Similarly "components/freertos/include" does not contain the normal/expected FreeRTOS includes, but only has a single subdir being another "freertos" below it, this including the normal FreeRTOS as well as xtensa RTOS related includes.
The impact of the FreeRTOS inconsistency is that all common (to other hardware platforms) type modules that need to include FreeRTOS.h, task.h etc. does not find the includes expected at "components/freertos/include".
Any specific reason I might be missing ?
Andre
Some of these situations, like libcoap, makes sense in order to maintain the original structure. Others, such as "components/driver" and "components/freertos" does not make sense to me.
"components/drivers/include" does not include any includes, but only has a subdir, again called "driver" that includes the actual header files.
Similarly "components/freertos/include" does not contain the normal/expected FreeRTOS includes, but only has a single subdir being another "freertos" below it, this including the normal FreeRTOS as well as xtensa RTOS related includes.
The impact of the FreeRTOS inconsistency is that all common (to other hardware platforms) type modules that need to include FreeRTOS.h, task.h etc. does not find the includes expected at "components/freertos/include".
Any specific reason I might be missing ?
Andre