Merge pull request #1613 from mikeller/clarify_naze_beeper_config
Clarified beeper config for NAZE and related targets.
This commit is contained in:
commit
1c3838320b
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue