mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 21:35:44 +03:00
Clarified beeper config for NAZE and related targets.
This commit is contained in:
parent
049afb3d7a
commit
865267b4f6
2 changed files with 5 additions and 0 deletions
|
@ -80,6 +80,7 @@ void targetConfiguration(master_t *config)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined(AFROMINI) && !defined(BEEBRAIN)
|
||||||
if (hardwareRevision >= NAZE32_REV5) {
|
if (hardwareRevision >= NAZE32_REV5) {
|
||||||
// naze rev4 and below used opendrain to PNP for buzzer. Rev5 and above use PP to NPN.
|
// naze rev4 and below used opendrain to PNP for buzzer. Rev5 and above use PP to NPN.
|
||||||
config->beeperConfig.isOpenDrain = false;
|
config->beeperConfig.isOpenDrain = false;
|
||||||
|
@ -88,5 +89,8 @@ void targetConfiguration(master_t *config)
|
||||||
config->beeperConfig.isOpenDrain = true;
|
config->beeperConfig.isOpenDrain = true;
|
||||||
config->beeperConfig.isInverted = false;
|
config->beeperConfig.isInverted = false;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
UNUSED(config);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -37,6 +37,7 @@
|
||||||
#define DEFAULT_FEATURES FEATURE_MOTOR_STOP
|
#define DEFAULT_FEATURES FEATURE_MOTOR_STOP
|
||||||
#else
|
#else
|
||||||
#define TARGET_BOARD_IDENTIFIER "AFNA"
|
#define TARGET_BOARD_IDENTIFIER "AFNA"
|
||||||
|
// Beeper configuration is handled in 'config.c', since it is dependent on hardware revision
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//#define BARO_XCLR_PIN PC13
|
//#define BARO_XCLR_PIN PC13
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue