mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Update system/beeper drivers so they do not include "board.h". It is now
clear what all system/beeper drivers need to compile and what was unnecessarily included before. Extracted system beeper code to a separate file.
This commit is contained in:
parent
1e9186d3a1
commit
2f07f52cf7
5 changed files with 86 additions and 54 deletions
12
src/board.h
12
src/board.h
|
@ -120,17 +120,7 @@ typedef void (* pidControllerFuncPtr)(void); // pid controller fu
|
|||
|
||||
#include "platform.h"
|
||||
#include "drivers/light_led.h"
|
||||
|
||||
#ifdef BEEP_GPIO
|
||||
#define BEEP_TOGGLE digitalToggle(BEEP_GPIO, BEEP_PIN);
|
||||
#define BEEP_OFF systemBeep(false);
|
||||
#define BEEP_ON systemBeep(true);
|
||||
#else
|
||||
#define BEEP_TOGGLE ;
|
||||
#define BEEP_OFF ;
|
||||
#define BEEP_ON ;
|
||||
#endif
|
||||
|
||||
#include "drivers/sound_beeper.h"
|
||||
#include "boardalignment.h"
|
||||
#include "battery.h"
|
||||
#include "math.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue