APM:Libraries
libraries
AP_HAL_Linux
GPIO_Bebop.cpp
Go to the documentation of this file.
1
#include <
AP_Common/AP_Common.h
>
2
3
#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BEBOP
4
#include "
GPIO_Bebop.h
"
5
6
const
unsigned
Linux::GPIO_Sysfs::pin_table
[] = {
7
[
BEBOP_GPIO_CAMV_NRST
] = 129,
8
[
LINUX_GPIO_ULTRASOUND_VOLTAGE
] = 200,
9
};
10
11
const
uint8_t
Linux::GPIO_Sysfs::n_pins
=
_BEBOP_GPIO_MAX
;
12
13
static_assert(
ARRAY_SIZE
(
Linux::GPIO_Sysfs::pin_table
) ==
_BEBOP_GPIO_MAX
,
14
"GPIO pin_table must have the same size of entries in enum gpio_bebop"
);
15
16
#endif
GPIO_Bebop.h
Linux::GPIO_Sysfs::n_pins
static const uint8_t n_pins
Definition:
GPIO_Sysfs.h:33
_BEBOP_GPIO_MAX
Definition:
GPIO_Bebop.h:8
Linux::GPIO_Sysfs::pin_table
static const unsigned pin_table[]
Definition:
GPIO_Sysfs.h:32
BEBOP_GPIO_CAMV_NRST
Definition:
GPIO_Bebop.h:6
ARRAY_SIZE
#define ARRAY_SIZE(_arr)
Definition:
AP_Common.h:80
AP_Common.h
Common definitions and utility routines for the ArduPilot libraries.
LINUX_GPIO_ULTRASOUND_VOLTAGE
Definition:
GPIO_Bebop.h:7
Generated on Sun Jun 17 2018 14:18:49 for APM:Libraries by
1.8.13