AP_HAL: added HAL_ prefix to GPIO_ defines

this fixes a bug caused by GPIO_INPUT and GPIO_OUTPUT already being
defined in NuttX, which caused pinMode() not to setup pins for output
when requested
This commit is contained in:
Andrew Tridgell 2014-06-02 09:24:52 +10:00
parent fa4eb5475a
commit 18a64d17d3

View File

@ -6,12 +6,12 @@
#include "AP_HAL_Namespace.h"
#define GPIO_INPUT 0
#define GPIO_OUTPUT 1
#define GPIO_INTERRUPT_LOW 0
#define GPIO_INTERRUPT_HIGH 1
#define GPIO_INTERRUPT_FALLING 2
#define GPIO_INTERRUPT_RISING 3
#define HAL_GPIO_INPUT 0
#define HAL_GPIO_OUTPUT 1
#define HAL_GPIO_INTERRUPT_LOW 0
#define HAL_GPIO_INTERRUPT_HIGH 1
#define HAL_GPIO_INTERRUPT_FALLING 2
#define HAL_GPIO_INTERRUPT_RISING 3
class AP_HAL::DigitalSource {
public: