GPIO_Bebop.cpp 483 B

12345678910111213141516
  1. #include <AP_HAL/AP_HAL_Boards.h>
  2. #if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BEBOP
  3. #include "GPIO_Bebop.h"
  4. const unsigned Linux::GPIO_Sysfs::pin_table[] = {
  5. [BEBOP_GPIO_CAMV_NRST] = 129,
  6. [LINUX_GPIO_ULTRASOUND_VOLTAGE] = 200,
  7. };
  8. const uint8_t Linux::GPIO_Sysfs::n_pins = _BEBOP_GPIO_MAX;
  9. static_assert(ARRAY_SIZE(Linux::GPIO_Sysfs::pin_table) == _BEBOP_GPIO_MAX,
  10. "GPIO pin_table must have the same size of entries in enum gpio_bebop");
  11. #endif