2019-02-12 19:46:42 -04:00
|
|
|
#include <AP_HAL/AP_HAL_Boards.h>
|
2016-06-08 01:55:30 -03:00
|
|
|
|
|
|
|
#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_DISCO
|
|
|
|
|
2016-06-16 00:00:22 -03:00
|
|
|
#include "GPIO_Disco.h"
|
|
|
|
|
2016-06-08 01:55:30 -03:00
|
|
|
const unsigned Linux::GPIO_Sysfs::pin_table[] = {
|
|
|
|
[DISCO_GPIO_MPU6050_DRDY] = 91,
|
2016-06-16 00:00:22 -03:00
|
|
|
[LINUX_GPIO_ULTRASOUND_VOLTAGE] = 200,
|
2016-06-08 01:55:30 -03:00
|
|
|
};
|
|
|
|
|
|
|
|
const uint8_t Linux::GPIO_Sysfs::n_pins = _DISCO_GPIO_MAX;
|
|
|
|
|
|
|
|
static_assert(ARRAY_SIZE(Linux::GPIO_Sysfs::pin_table) == _DISCO_GPIO_MAX,
|
|
|
|
"GPIO pin_table must have the same size of entries in enum gpio_disco");
|
|
|
|
|
|
|
|
#endif
|