|
|
@ -68,6 +68,14 @@ |
|
|
|
#define BOARD_CONFIG_BOARD_VOLTAGE_MIN 4.3f |
|
|
|
#define BOARD_CONFIG_BOARD_VOLTAGE_MIN 4.3f |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef HAL_BRD_OPTIONS_DEFAULT |
|
|
|
|
|
|
|
#if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS |
|
|
|
|
|
|
|
#define HAL_BRD_OPTIONS_DEFAULT BOARD_OPTION_WATCHDOG |
|
|
|
|
|
|
|
#else |
|
|
|
|
|
|
|
#define HAL_BRD_OPTIONS_DEFAULT 0 |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
extern const AP_HAL::HAL& hal; |
|
|
|
extern const AP_HAL::HAL& hal; |
|
|
|
AP_BoardConfig *AP_BoardConfig::_singleton; |
|
|
|
AP_BoardConfig *AP_BoardConfig::_singleton; |
|
|
|
|
|
|
|
|
|
|
@ -230,6 +238,13 @@ const AP_Param::GroupInfo AP_BoardConfig::var_info[] = { |
|
|
|
AP_GROUPINFO("PWM_VOLT_SEL", 18, AP_BoardConfig, _pwm_volt_sel, 0), |
|
|
|
AP_GROUPINFO("PWM_VOLT_SEL", 18, AP_BoardConfig, _pwm_volt_sel, 0), |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// @Param: OPTIONS
|
|
|
|
|
|
|
|
// @DisplayName: Board options
|
|
|
|
|
|
|
|
// @Description: Board specific option flags
|
|
|
|
|
|
|
|
// @Bitmask: 0:Enable hardware watchdog
|
|
|
|
|
|
|
|
// @User: Advanced
|
|
|
|
|
|
|
|
AP_GROUPINFO("OPTIONS", 19, AP_BoardConfig, _options, HAL_BRD_OPTIONS_DEFAULT), |
|
|
|
|
|
|
|
|
|
|
|
AP_GROUPEND |
|
|
|
AP_GROUPEND |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|