1
0
Fork 0
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:
mikeller 2016-11-20 17:44:19 +13:00
parent 049afb3d7a
commit 865267b4f6
2 changed files with 5 additions and 0 deletions

View file

@ -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
} }

View file

@ -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