mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 00:05:33 +03:00
Cleanup project structure. Update unit test Makefile to place object
files in obj/test
This commit is contained in:
parent
fb9e3a2358
commit
d19a5e7046
330 changed files with 657 additions and 638 deletions
32
src/main/drivers/light_led.h
Normal file
32
src/main/drivers/light_led.h
Normal file
|
@ -0,0 +1,32 @@
|
|||
#pragma once
|
||||
|
||||
// Helpful macros
|
||||
#ifdef LED0
|
||||
#define LED0_TOGGLE digitalToggle(LED0_GPIO, LED0_PIN);
|
||||
#ifndef LED0_INVERTED
|
||||
#define LED0_OFF digitalHi(LED0_GPIO, LED0_PIN);
|
||||
#define LED0_ON digitalLo(LED0_GPIO, LED0_PIN);
|
||||
#else
|
||||
#define LED0_OFF digitalLo(LED0_GPIO, LED0_PIN);
|
||||
#define LED0_ON digitalHi(LED0_GPIO, LED0_PIN);
|
||||
#endif // inverted
|
||||
#else
|
||||
#define LED0_TOGGLE
|
||||
#define LED0_OFF
|
||||
#define LED0_ON
|
||||
#endif
|
||||
|
||||
#ifdef LED1
|
||||
#define LED1_TOGGLE digitalToggle(LED1_GPIO, LED1_PIN);
|
||||
#ifndef LED1_INVERTED
|
||||
#define LED1_OFF digitalHi(LED1_GPIO, LED1_PIN);
|
||||
#define LED1_ON digitalLo(LED1_GPIO, LED1_PIN);
|
||||
#else
|
||||
#define LED1_OFF digitalLo(LED1_GPIO, LED1_PIN);
|
||||
#define LED1_ON digitalHi(LED1_GPIO, LED1_PIN);
|
||||
#endif // inverted
|
||||
#else
|
||||
#define LED1_TOGGLE
|
||||
#define LED1_OFF
|
||||
#define LED1_ON
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue