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:
Peter Barker 2021-09-18 11:14:53 +10:00 committed by Peter Barker
parent 9c24916115
commit f0efc1300e
2 changed files with 3 additions and 2 deletions

View File

@ -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()

View File

@ -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 || \