mirror of https://github.com/ArduPilot/ardupilot
AP_HAL_Linux: move defines of GPIO LOW/HIGH into cpp file
Insane having these generic defines happening if you include GPIO_BBB.h
This commit is contained in:
parent
9c24916115
commit
f0efc1300e
|
@ -17,6 +17,9 @@
|
|||
#include <sys/mman.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#define LOW 0
|
||||
#define HIGH 1
|
||||
|
||||
using namespace Linux;
|
||||
|
||||
GPIO_BBB::GPIO_BBB()
|
||||
|
|
|
@ -20,8 +20,6 @@
|
|||
#define LED_BLUE 48
|
||||
#define LED_SAFETY 61
|
||||
#define SAFETY_SWITCH 116
|
||||
#define LOW 0
|
||||
#define HIGH 1
|
||||
|
||||
#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_PXF || \
|
||||
CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_ERLEBOARD || \
|
||||
|
|
Loading…
Reference in New Issue