Merge pull request #1613 from mikeller/clarify_naze_beeper_config

Clarified beeper config for NAZE and related targets.
This commit is contained in:
J Blackman 2016-11-20 17:09:02 +11:00 committed by GitHub
commit 1c3838320b
2 changed files with 5 additions and 0 deletions

View File

@ -80,6 +80,7 @@ void targetConfiguration(master_t *config)
}
#endif
#if !defined(AFROMINI) && !defined(BEEBRAIN)
if (hardwareRevision >= NAZE32_REV5) {
// naze rev4 and below used opendrain to PNP for buzzer. Rev5 and above use PP to NPN.
config->beeperConfig.isOpenDrain = false;
@ -88,5 +89,8 @@ void targetConfiguration(master_t *config)
config->beeperConfig.isOpenDrain = true;
config->beeperConfig.isInverted = false;
}
#else
UNUSED(config);
#endif
}

View File

@ -37,6 +37,7 @@
#define DEFAULT_FEATURES FEATURE_MOTOR_STOP
#else
#define TARGET_BOARD_IDENTIFIER "AFNA"
// Beeper configuration is handled in 'config.c', since it is dependent on hardware revision
#endif
//#define BARO_XCLR_PIN PC13