APM:Libraries
libraries
AP_HAL_Linux
GPIO_Minnow.cpp
Go to the documentation of this file.
1
#include <
AP_Common/AP_Common.h
>
2
3
#include "
GPIO_Minnow.h
"
4
5
#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_MINLURE
6
7
const
unsigned
Linux::GPIO_Sysfs::pin_table
[] = {
8
[
MINNOW_GPIO_SPI_CS
] = 476,
9
[
MINNOW_GPIO_SPI_MISO
] = 477,
10
[
MINNOW_GPIO_SPI_MOSI
] = 478,
11
[
MINNOW_GPIO_SPI_CLK
] = 479,
12
[
MINNOW_GPIO_I2C_SCL
] = 499,
13
[
MINNOW_GPIO_I2C_SDA
] = 498,
14
[
MINNOW_GPIO_UART2_TXD
] = 485,
15
[
MINNOW_GPIO_UART2_RXD
] = 484,
16
[
MINNOW_GPIO_S5_0
] = 338,
17
[
MINNOW_GPIO_S5_1
] = 339,
18
[
MINNOW_GPIO_S5_2
] = 340,
19
[
MINNOW_GPIO_UART1_TXD
] = 481,
20
[
MINNOW_GPIO_UART1_RXD
] = 480,
21
[
MINNOW_GPIO_UART1_CTS
] = 483,
22
[
MINNOW_GPIO_UART1_RTS
] = 482,
23
[
MINNOW_GPIO_I2S_CLK
] = 472,
24
[
MINNOW_GPIO_I2S_FRM
] = 473,
25
[
MINNOW_GPIO_I2S_DO
] = 475,
26
[
MINNOW_GPIO_I2S_DI
] = 474,
27
[
MINNOW_GPIO_PWM0
] = 504,
28
[
MINNOW_GPIO_PWM1
] = 505,
29
[
MINNOW_GPIO_IBL_8254
] = 464,
30
};
31
32
const
uint8_t
Linux::GPIO_Sysfs::n_pins
=
_MINNOW_GPIO_MAX
;
33
34
static_assert(
ARRAY_SIZE
(
Linux::GPIO_Sysfs::pin_table
) ==
_MINNOW_GPIO_MAX
,
35
"GPIO pin_table must have the same size of entries in enum gpio_minnow"
);
36
37
#endif
MINNOW_GPIO_IBL_8254
Definition:
GPIO_Minnow.h:27
MINNOW_GPIO_PWM0
Definition:
GPIO_Minnow.h:25
_MINNOW_GPIO_MAX
Definition:
GPIO_Minnow.h:28
MINNOW_GPIO_PWM1
Definition:
GPIO_Minnow.h:26
MINNOW_GPIO_SPI_CLK
Definition:
GPIO_Minnow.h:9
Linux::GPIO_Sysfs::n_pins
static const uint8_t n_pins
Definition:
GPIO_Sysfs.h:33
MINNOW_GPIO_I2C_SCL
Definition:
GPIO_Minnow.h:10
MINNOW_GPIO_UART1_RXD
Definition:
GPIO_Minnow.h:18
MINNOW_GPIO_UART1_TXD
Definition:
GPIO_Minnow.h:17
MINNOW_GPIO_I2S_DI
Definition:
GPIO_Minnow.h:24
MINNOW_GPIO_S5_1
Definition:
GPIO_Minnow.h:15
Linux::GPIO_Sysfs::pin_table
static const unsigned pin_table[]
Definition:
GPIO_Sysfs.h:32
MINNOW_GPIO_I2C_SDA
Definition:
GPIO_Minnow.h:11
ARRAY_SIZE
#define ARRAY_SIZE(_arr)
Definition:
AP_Common.h:80
MINNOW_GPIO_SPI_CS
Definition:
GPIO_Minnow.h:6
MINNOW_GPIO_UART2_RXD
Definition:
GPIO_Minnow.h:13
MINNOW_GPIO_SPI_MOSI
Definition:
GPIO_Minnow.h:8
AP_Common.h
Common definitions and utility routines for the ArduPilot libraries.
MINNOW_GPIO_I2S_CLK
Definition:
GPIO_Minnow.h:21
MINNOW_GPIO_UART1_CTS
Definition:
GPIO_Minnow.h:19
MINNOW_GPIO_S5_0
Definition:
GPIO_Minnow.h:14
GPIO_Minnow.h
MINNOW_GPIO_UART2_TXD
Definition:
GPIO_Minnow.h:12
MINNOW_GPIO_UART1_RTS
Definition:
GPIO_Minnow.h:20
MINNOW_GPIO_I2S_FRM
Definition:
GPIO_Minnow.h:22
MINNOW_GPIO_I2S_DO
Definition:
GPIO_Minnow.h:23
MINNOW_GPIO_S5_2
Definition:
GPIO_Minnow.h:16
MINNOW_GPIO_SPI_MISO
Definition:
GPIO_Minnow.h:7
Generated on Sun Jun 17 2018 14:18:49 for APM:Libraries by
1.8.13