mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Rover: fix for HAL_GPIO_*
This commit is contained in:
parent
1e2214f8d1
commit
e35c0a578d
@ -2,9 +2,6 @@
|
|||||||
#ifndef __COMPAT_H__
|
#ifndef __COMPAT_H__
|
||||||
#define __COMPAT_H__
|
#define __COMPAT_H__
|
||||||
|
|
||||||
#define OUTPUT GPIO_OUTPUT
|
|
||||||
#define INPUT GPIO_INPUT
|
|
||||||
|
|
||||||
#define HIGH 1
|
#define HIGH 1
|
||||||
#define LOW 0
|
#define LOW 0
|
||||||
|
|
||||||
|
@ -470,7 +470,7 @@ static uint8_t check_digital_pin(uint8_t pin)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
// ensure we are in input mode
|
// ensure we are in input mode
|
||||||
hal.gpio->pinMode(dpin, GPIO_INPUT);
|
hal.gpio->pinMode(dpin, HAL_GPIO_INPUT);
|
||||||
|
|
||||||
// enable pullup
|
// enable pullup
|
||||||
hal.gpio->write(dpin, 1);
|
hal.gpio->write(dpin, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user