AP_HAL_Linux: Add support for Sonar GPIO

This commit is contained in:
Julien Beraud 2016-04-15 19:29:26 +02:00 committed by Lucas De Marchi
parent 5418f71aae
commit 738096b3ae
2 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,7 @@
const unsigned Linux::GPIO_Sysfs::pin_table[] = { const unsigned Linux::GPIO_Sysfs::pin_table[] = {
[BEBOP_GPIO_CAMV_NRST] = 129, [BEBOP_GPIO_CAMV_NRST] = 129,
[LINUX_GPIO_ULTRASOUND_VOLTAGE] = 200,
}; };
const uint8_t Linux::GPIO_Sysfs::n_pins = _BEBOP_GPIO_MAX; const uint8_t Linux::GPIO_Sysfs::n_pins = _BEBOP_GPIO_MAX;

View File

@ -4,5 +4,6 @@
enum gpio_bebop { enum gpio_bebop {
BEBOP_GPIO_CAMV_NRST, BEBOP_GPIO_CAMV_NRST,
LINUX_GPIO_ULTRASOUND_VOLTAGE,
_BEBOP_GPIO_MAX, _BEBOP_GPIO_MAX,
}; };