HAL_Linux: fixed ULTRASOUND GPIO for Disco

This commit is contained in:
Andrew Tridgell 2016-06-16 13:00:22 +10:00
parent 1d8e4cdea9
commit a78b875ec3
3 changed files with 5 additions and 4 deletions

View File

@ -1,8 +1,7 @@
#include <AP_Common/AP_Common.h>
#include "GPIO_Bebop.h"
#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BEBOP
#include "GPIO_Bebop.h"
const unsigned Linux::GPIO_Sysfs::pin_table[] = {
[BEBOP_GPIO_CAMV_NRST] = 129,

View File

@ -1,11 +1,12 @@
#include <AP_Common/AP_Common.h>
#include "GPIO_Disco.h"
#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_DISCO
#include "GPIO_Disco.h"
const unsigned Linux::GPIO_Sysfs::pin_table[] = {
[DISCO_GPIO_MPU6050_DRDY] = 91,
[LINUX_GPIO_ULTRASOUND_VOLTAGE] = 200,
};
const uint8_t Linux::GPIO_Sysfs::n_pins = _DISCO_GPIO_MAX;

View File

@ -4,5 +4,6 @@
enum gpio_disco {
DISCO_GPIO_MPU6050_DRDY,
LINUX_GPIO_ULTRASOUND_VOLTAGE,
_DISCO_GPIO_MAX,
};