mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 21:05:35 +03:00
Re-added support for the AFROMINI target.
This commit is contained in:
parent
4bd0b0fb9c
commit
7910ae5c7b
3 changed files with 4 additions and 4 deletions
|
@ -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.
|
||||||
|
|
1
src/main/target/NAZE/AFROMINI.mk
Normal file
1
src/main/target/NAZE/AFROMINI.mk
Normal file
|
@ -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…
Add table
Add a link
Reference in a new issue