AP_BoardConfig: removed BRD_PWM_COUNT

This commit is contained in:
Andrew Tridgell 2021-07-15 08:39:52 +10:00
parent 54e53ed71c
commit 0f70b4d8e3
2 changed files with 2 additions and 13 deletions

View File

@ -80,13 +80,8 @@ AP_BoardConfig *AP_BoardConfig::_singleton;
// table of user settable parameters
const AP_Param::GroupInfo AP_BoardConfig::var_info[] = {
// @Param: PWM_COUNT
// @DisplayName: Auxiliary pin config
// @Description: Controls number of FMU outputs which are setup for PWM. All unassigned pins can be used for GPIO
// @Values: 0:No PWMs,1:One PWMs,2:Two PWMs,3:Three PWMs,4:Four PWMs,5:Five PWMs,6:Six PWMs,7:Seven PWMs,8:Eight PWMs
// @RebootRequired: True
// @User: Advanced
AP_GROUPINFO("PWM_COUNT", 0, AP_BoardConfig, pwm_count, BOARD_PWM_COUNT_DEFAULT),
// index 0 was used by PWM_COUNT
#if AP_FEATURE_RTSCTS
#ifdef HAL_HAVE_RTSCTS_SERIAL1

View File

@ -121,11 +121,6 @@ public:
#endif
}
// get number of PWM outputs enabled on FMU
static uint8_t get_pwm_count(void) {
return _singleton?_singleton->pwm_count.get():8;
}
// get alternative config selection
uint8_t get_alt_config(void) {
return uint8_t(_alt_config.get());
@ -210,7 +205,6 @@ private:
static AP_BoardConfig *_singleton;
AP_Int16 vehicleSerialNumber;
AP_Int8 pwm_count;
struct {
AP_Int8 safety_enable;