mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-05 07:28:29 -04:00
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:
parent
fa4eb5475a
commit
18a64d17d3
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user