Merge pull request #524 from mikeller/afromini_readd
Re-added support for the AFROMINI target.
This commit is contained in:
commit
3c7a9b12a6
|
@ -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.
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
# AFROMINI is a VARIANT of NAZE being recognized as rev4, but needs to use rev5
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue