Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
imu_aspirin_arch.h
Go to the documentation of this file.
1
#ifndef IMU_ASPIRIN_ARCH_H
2
#define IMU_ASPIRIN_ARCH_H
3
4
#include "
modules/imu/imu.h
"
5
#include <libopencm3/stm32/gpio.h>
6
7
extern
void
imu_aspirin_arch_int_enable
(
void
);
8
extern
void
imu_aspirin_arch_int_disable
(
void
);
9
10
// gyro eoc
11
static
inline
int
imu_aspirin_eoc
(
void
)
12
{
13
return
(
gpio_get
(
GPIOC
,
GPIO14
) == 0);
14
}
15
16
17
18
#endif
/* IMU_ASPIRIN_ARCH_H */
gpio_get
static uint8_t gpio_get(ioportid_t port, uint16_t pin)
Get level of a gpio.
Definition:
gpio_arch.h:94
GPIO14
#define GPIO14
Definition:
gpio_def.h:45
imu.h
Inertial Measurement Unit interface.
imu_aspirin_arch_int_enable
void imu_aspirin_arch_int_enable(void)
Definition:
imu_aspirin_arch.c:16
imu_aspirin_arch_int_disable
void imu_aspirin_arch_int_disable(void)
Definition:
imu_aspirin_arch.c:35
imu_aspirin_eoc
static int imu_aspirin_eoc(void)
Definition:
imu_aspirin_arch.h:11
GPIOC
#define GPIOC
Definition:
gpio_arch.h:36
sw
airborne
arch
stm32
modules
imu
imu_aspirin_arch.h
Generated on Thu Dec 5 2024 13:05:29 for Paparazzi UAS by
1.9.1