Browse Source

AP_Param_Helper: HAL_F4Light parameters divided into common and board specific

master
night-ghost 7 years ago committed by Francisco Ferreira
parent
commit
d75491371d
  1. 6
      libraries/AP_Param_Helper/AP_Param_Helper.cpp
  2. 7
      libraries/AP_Param_Helper/AP_Param_Helper.h

6
libraries/AP_Param_Helper/AP_Param_Helper.cpp

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

7
libraries/AP_Param_Helper/AP_Param_Helper.h

@ -16,7 +16,12 @@ public:
static const AP_Param::GroupInfo var_info[]; 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 #ifdef BOARD_HAL_PARAMS
BOARD_HAL_PARAMS BOARD_HAL_PARAMS
#endif #endif

Loading…
Cancel
Save