APM:Libraries
libraries
AP_HAL_Linux
GPIO_Disco.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_DISCO
4
5
#include "
GPIO_Disco.h
"
6
7
const
unsigned
Linux::GPIO_Sysfs::pin_table
[] = {
8
[
DISCO_GPIO_MPU6050_DRDY
] = 91,
9
[
LINUX_GPIO_ULTRASOUND_VOLTAGE
] = 200,
10
};
11
12
const
uint8_t
Linux::GPIO_Sysfs::n_pins
=
_DISCO_GPIO_MAX
;
13
14
static_assert(
ARRAY_SIZE
(
Linux::GPIO_Sysfs::pin_table
) ==
_DISCO_GPIO_MAX
,
15
"GPIO pin_table must have the same size of entries in enum gpio_disco"
);
16
17
#endif
Linux::GPIO_Sysfs::n_pins
static const uint8_t n_pins
Definition:
GPIO_Sysfs.h:33
Linux::GPIO_Sysfs::pin_table
static const unsigned pin_table[]
Definition:
GPIO_Sysfs.h:32
ARRAY_SIZE
#define ARRAY_SIZE(_arr)
Definition:
AP_Common.h:80
AP_Common.h
Common definitions and utility routines for the ArduPilot libraries.
DISCO_GPIO_MPU6050_DRDY
Definition:
GPIO_Disco.h:6
GPIO_Disco.h
LINUX_GPIO_ULTRASOUND_VOLTAGE
Definition:
GPIO_Bebop.h:7
_DISCO_GPIO_MAX
Definition:
GPIO_Disco.h:8
Generated on Sun Jun 17 2018 14:18:49 for APM:Libraries by
1.8.13