mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 12:25:20 +03:00
Use Naze hardware revision when initialising beeper. Cleanup inverted
beeper configuration.
This commit is contained in:
parent
2ed09b0b2f
commit
50391f2c8e
8 changed files with 70 additions and 3808 deletions
|
@ -26,7 +26,6 @@
|
|||
#include "gpio.h"
|
||||
#include "light_led.h"
|
||||
#include "sound_beeper.h"
|
||||
#include "inverter.h"
|
||||
|
||||
#include "system.h"
|
||||
|
||||
|
@ -93,20 +92,11 @@ void systemInit(void)
|
|||
AFIO->MAPR |= AFIO_MAPR_SWJ_CFG_NO_JTAG_SW;
|
||||
#endif
|
||||
|
||||
ledInit();
|
||||
beeperInit();
|
||||
#ifdef INVERTER
|
||||
initInverter();
|
||||
#endif
|
||||
|
||||
// Init cycle counter
|
||||
cycleCounterInit();
|
||||
|
||||
// SysTick
|
||||
SysTick_Config(SystemCoreClock / 1000);
|
||||
|
||||
// sleep for 100ms
|
||||
delay(100);
|
||||
}
|
||||
|
||||
#if 1
|
||||
|
@ -158,7 +148,7 @@ void failureMode(uint8_t mode)
|
|||
LED1_TOGGLE;
|
||||
LED0_TOGGLE;
|
||||
delay(475 * mode - 2);
|
||||
BEEP_ON
|
||||
BEEP_ON;
|
||||
delay(25);
|
||||
BEEP_OFF;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue