APM:Libraries
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 
30 
32  "GPIO pin_table must have the same size of entries in enum gpio_aero");
33 
34 #endif
static const uint8_t n_pins
Definition: GPIO_Sysfs.h:33
static const unsigned pin_table[]
Definition: GPIO_Sysfs.h:32
#define ARRAY_SIZE(_arr)
Definition: AP_Common.h:80
Common definitions and utility routines for the ArduPilot libraries.