mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Update compass drivers so they do not include "board.h". It is now clear
what all compass drivers need to compile and what was unnecessarily included before. LED macros now moved into light_led.h
This commit is contained in:
parent
1205765b4c
commit
b6232573c0
11 changed files with 55 additions and 47 deletions
22
src/board.h
22
src/board.h
|
@ -118,27 +118,7 @@ typedef uint16_t (* rcReadRawDataPtr)(uint8_t chan); // used by receiver
|
|||
typedef void (* pidControllerFuncPtr)(void); // pid controller function prototype
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
// Helpful macros
|
||||
#ifdef LED0
|
||||
#define LED0_TOGGLE digitalToggle(LED0_GPIO, LED0_PIN);
|
||||
#define LED0_OFF digitalHi(LED0_GPIO, LED0_PIN);
|
||||
#define LED0_ON digitalLo(LED0_GPIO, LED0_PIN);
|
||||
#else
|
||||
#define LED0_TOGGLE
|
||||
#define LED0_OFF
|
||||
#define LED0_ON
|
||||
#endif
|
||||
|
||||
#ifdef LED1
|
||||
#define LED1_TOGGLE digitalToggle(LED1_GPIO, LED1_PIN);
|
||||
#define LED1_OFF digitalHi(LED1_GPIO, LED1_PIN);
|
||||
#define LED1_ON digitalLo(LED1_GPIO, LED1_PIN);
|
||||
#else
|
||||
#define LED1_TOGGLE
|
||||
#define LED1_OFF
|
||||
#define LED1_ON
|
||||
#endif
|
||||
#include "drivers/light_led.h"
|
||||
|
||||
#ifdef BEEP_GPIO
|
||||
#define BEEP_TOGGLE digitalToggle(BEEP_GPIO, BEEP_PIN);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue