Merge pull request #524 from mikeller/afromini_readd

Re-added support for the AFROMINI target.
This commit is contained in:
J Blackman 2016-06-16 15:09:17 +10:00 committed by GitHub
commit 3c7a9b12a6
3 changed files with 4 additions and 4 deletions

View File

@ -352,10 +352,6 @@ void init(void)
.isInverted = false .isInverted = false
#endif #endif
}; };
#ifdef AFROMINI
beeperConfig.isOD = true;
beeperConfig.isInverted = true;
#endif
#ifdef NAZE #ifdef NAZE
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.

View File

@ -0,0 +1 @@
# AFROMINI is a VARIANT of NAZE being recognized as rev4, but needs to use rev5

View File

@ -26,6 +26,9 @@
#define LED1 PB4 // PB4 (LED) #define LED1 PB4 // PB4 (LED)
#define BEEPER PA12 // PA12 (Beeper) #define BEEPER PA12 // PA12 (Beeper)
#ifdef AFROMINI
#define BEEPER_INVERTED
#endif
#define BARO_XCLR_PIN PC13 #define BARO_XCLR_PIN PC13
#define BARO_EOC_PIN PC14 #define BARO_EOC_PIN PC14