APM:Libraries
libraries
AP_HAL_Linux
GPIO_Edge.cpp
Go to the documentation of this file.
1
#include <
AP_Common/AP_Common.h
>
2
3
#include "
GPIO_Edge.h
"
4
5
#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_EDGE
6
7
const
unsigned
Linux::GPIO_Sysfs::pin_table
[] = {
8
[
EDGE_GPIO_PWM1
] = 500,
9
[
EDGE_GPIO_PWM2
] = 501,
10
[
EDGE_GPIO_PWM3
] = 502,
11
[
EDGE_GPIO_PWM4
] = 503,
12
[
EDGE_GPIO_PWM5
] = 504,
13
[
EDGE_GPIO_PWM6
] = 505,
14
[
EDGE_GPIO_PWM7
] = 506,
15
[
EDGE_GPIO_PWM8
] = 507,
16
[
EDGE_GPIO_PWM9
] = 508,
17
[
EDGE_GPIO_PWM10
] = 509,
18
[
EDGE_GPIO_PWM11
] = 510,
19
[
EDGE_GPIO_PWM12
] = 511,
20
[
EDGE_GPIO_HEAT_ENABLE
] = 26,
21
};
22
23
const
uint8_t
Linux::GPIO_Sysfs::n_pins
=
_EDGE_GPIO_MAX
;
24
25
static_assert(
ARRAY_SIZE
(
Linux::GPIO_Sysfs::pin_table
) ==
_EDGE_GPIO_MAX
,
26
"GPIO pin_table must have the same size of entries in enum gpio_minnow"
);
27
28
#endif
EDGE_GPIO_PWM7
Definition:
GPIO_Edge.h:12
Linux::GPIO_Sysfs::n_pins
static const uint8_t n_pins
Definition:
GPIO_Sysfs.h:33
EDGE_GPIO_PWM3
Definition:
GPIO_Edge.h:8
_EDGE_GPIO_MAX
Definition:
GPIO_Edge.h:19
EDGE_GPIO_HEAT_ENABLE
Definition:
GPIO_Edge.h:18
GPIO_Edge.h
EDGE_GPIO_PWM5
Definition:
GPIO_Edge.h:10
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
EDGE_GPIO_PWM1
Definition:
GPIO_Edge.h:6
AP_Common.h
Common definitions and utility routines for the ArduPilot libraries.
EDGE_GPIO_PWM11
Definition:
GPIO_Edge.h:16
EDGE_GPIO_PWM6
Definition:
GPIO_Edge.h:11
EDGE_GPIO_PWM9
Definition:
GPIO_Edge.h:14
EDGE_GPIO_PWM4
Definition:
GPIO_Edge.h:9
EDGE_GPIO_PWM8
Definition:
GPIO_Edge.h:13
EDGE_GPIO_PWM12
Definition:
GPIO_Edge.h:17
EDGE_GPIO_PWM10
Definition:
GPIO_Edge.h:15
EDGE_GPIO_PWM2
Definition:
GPIO_Edge.h:7
Generated on Sun Jun 17 2018 14:18:49 for APM:Libraries by
1.8.13