It would be nice to have the "info" command listing the hal drivers that have been compiled in, something like:
Code: Select all
chprintf(chp, "HAL drivers: %s"SHELL_NEWLINE_STR,
""
#if defined(HAL_USE_RTC) && HAL_USE_RTC
" RTC"
#endif
#if defined(HAL_USE_PAL) && HAL_USE_PAL
" PAL"
#endif