Open
Description
Problem Statement
Currently, this framework is all or nothing, which can bloat the binary. While this is acceptable for the datalogger product it's currently used in, it makes it difficult to utilize this in future products that may not want to use all the sensors, only some of them.
Proposed Solution
Using some sort of conditional compilation. 2 ideas come to mind to me.
- #ifdef guarding inside the device libraries with a configuration file in your application including the appropriate devices. This could take the form of
#ifdef (FLX_DEV_ALL || FLX_DEV_ABC123)
so there's still an include all option. - Using CMake. I'm not sure how this would work in the context of arduino applications, but arduino cores use it. Would require further thought.