APM:Libraries
libraries
AP_HAL_Linux
GPIO_Aero.cpp
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2016 Intel Corporation. All rights reserved.
3
*
4
* This file is free software: you can redistribute it and/or modify it
5
* under the terms of the GNU General Public License as published by the
6
* Free Software Foundation, either version 3 of the License, or
7
* (at your option) any later version.
8
*
9
* This file is distributed in the hope that it will be useful, but
10
* WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
* See the GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License along
15
* with this program. If not, see <http://www.gnu.org/licenses/>.
16
*/
17
#include <
AP_HAL/AP_HAL.h
>
18
19
#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_AERO
20
21
#include <
AP_Common/AP_Common.h
>
22
23
#include "
GPIO_Aero.h
"
24
25
const
unsigned
Linux::GPIO_Sysfs::pin_table
[] = {
26
[
AERO_GPIO_BMI160_INT1
] = 411,
27
};
28
29
const
uint8_t
Linux::GPIO_Sysfs::n_pins
=
_AERO_GPIO_MAX
;
30
31
static_assert(
ARRAY_SIZE
(
Linux::GPIO_Sysfs::pin_table
) ==
_AERO_GPIO_MAX
,
32
"GPIO pin_table must have the same size of entries in enum gpio_aero"
);
33
34
#endif
_AERO_GPIO_MAX
Definition:
GPIO_Aero.h:23
GPIO_Aero.h
AP_HAL.h
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.
AERO_GPIO_BMI160_INT1
Definition:
GPIO_Aero.h:22
Generated on Sun Jun 17 2018 14:18:49 for APM:Libraries by
1.8.13