Paparazzi UAS
v5.18.0_stable
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 "
subsystems/imu.h
"
5
#include "
std.h
"
6
#include "
LPC21xx.h
"
7
8
#if !defined ASPIRIN_GYRO_EOC_IODIR && !defined ASPIRIN_GYRO_EOC_IOPIN && !defined ASPIRIN_GYRO_EOC_PIN
9
#define ASPIRIN_GYRO_EOC_IODIR IO0DIR
10
#define ASPIRIN_GYRO_EOC_IOPIN IO0PIN
11
#define ASPIRIN_GYRO_EOC_PIN 16
12
#endif
13
14
extern
void
imu_aspirin_arch_int_enable
(
void
);
15
extern
void
imu_aspirin_arch_int_disable
(
void
);
16
17
// gyro eoc
18
static
inline
int
imu_aspirin_eoc
(
void
)
19
{
20
return
bit_is_set(
ASPIRIN_GYRO_EOC_IOPIN
,
ASPIRIN_GYRO_EOC_PIN
);
21
}
22
#endif
/* IMU_ASPIRIN_ARCH_H */
imu_aspirin_arch_int_disable
void imu_aspirin_arch_int_disable(void)
Definition:
imu_aspirin_arch.c:15
imu_aspirin_eoc
static int imu_aspirin_eoc(void)
Definition:
imu_aspirin_arch.h:18
LPC21xx.h
ASPIRIN_GYRO_EOC_IOPIN
#define ASPIRIN_GYRO_EOC_IOPIN
Definition:
imu_aspirin_arch.h:10
imu.h
std.h
ASPIRIN_GYRO_EOC_PIN
#define ASPIRIN_GYRO_EOC_PIN
Definition:
imu_aspirin_arch.h:11
imu_aspirin_arch_int_enable
void imu_aspirin_arch_int_enable(void)
Definition:
imu_aspirin_arch.c:11
sw
airborne
arch
lpc21
subsystems
imu
imu_aspirin_arch.h
Generated on Tue Feb 1 2022 13:51:13 for Paparazzi UAS by
1.8.17