2015-11-26 09:37:11 -04:00
|
|
|
#include <AP_Common/AP_Common.h>
|
|
|
|
|
2016-06-08 01:55:30 -03:00
|
|
|
#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BEBOP
|
2016-06-16 00:00:22 -03:00
|
|
|
#include "GPIO_Bebop.h"
|
2015-11-26 09:37:11 -04:00
|
|
|
|
|
|
|
const unsigned Linux::GPIO_Sysfs::pin_table[] = {
|
|
|
|
[BEBOP_GPIO_CAMV_NRST] = 129,
|
2016-04-15 14:29:26 -03:00
|
|
|
[LINUX_GPIO_ULTRASOUND_VOLTAGE] = 200,
|
2015-11-26 09:37:11 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
const uint8_t Linux::GPIO_Sysfs::n_pins = _BEBOP_GPIO_MAX;
|
|
|
|
|
|
|
|
static_assert(ARRAY_SIZE(Linux::GPIO_Sysfs::pin_table) == _BEBOP_GPIO_MAX,
|
2015-12-16 13:14:55 -04:00
|
|
|
"GPIO pin_table must have the same size of entries in enum gpio_bebop");
|
2015-11-26 09:37:11 -04:00
|
|
|
|
|
|
|
#endif
|