Rover: fix for HAL_GPIO_*

This commit is contained in:
Andrew Tridgell 2014-06-02 09:27:52 +10:00
parent 1e2214f8d1
commit e35c0a578d
2 changed files with 1 additions and 4 deletions

View File

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

View File

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