Code: Select all
#if !defined(HAL_USE_SIO) || defined(__DOXYGEN__)
#define HAL_USE_SIO FALSE
#endif
I expected to be able to set HAL_USE_SIO in the Makefile (e.g. USE_OPT+= -DHAL_USE_SIO=TRUE) as an alternative to editing the halconf.h file.
I ran into undefined errors which I tracked down to that kind of statement in driver.mk:
Code: Select all
ifneq ($(findstring HAL_USE_SIO TRUE,$(HALCONF)),)
So it seems the only way to activate a HAL feature is to actually have a different copy of halconf where the feature is set to TRUE?
Is it just me thinking that's misleading? Am I missing a way to turn a hal feature on 'programmatically'?