AP_Param_Helper: HAL_F4Light parameters divided into common and board specific

This commit is contained in:
night-ghost 2018-03-05 10:33:02 +05:00 committed by Francisco Ferreira
parent 5c0c3a0f08
commit d75491371d
2 changed files with 11 additions and 2 deletions

View File

@ -5,9 +5,13 @@
#if defined(HAL_NEEDS_PARAM_HELPER)
const AP_Param::GroupInfo AP_Param_Helper::var_info[] = {
#if defined(F4LIGHT_HAL_VARINFO)
F4LIGHT_HAL_VARINFO
#endif
// only if board defines parameters
#ifdef BOARD_HAL_VARINFO
BOARD_HAL_VARINFO,
BOARD_HAL_VARINFO
#endif
AP_GROUPEND
};

View File

@ -16,7 +16,12 @@ public:
static const AP_Param::GroupInfo var_info[];
// only if defined
// common HAL params
#if defined(F4LIGHT_HAL_PARAMS)
F4LIGHT_HAL_PARAMS
#endif
// per board params - only if defined
#ifdef BOARD_HAL_PARAMS
BOARD_HAL_PARAMS
#endif