Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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 */
#define ASPIRIN_GYRO_EOC_PIN
void imu_aspirin_arch_int_disable(void)
void imu_aspirin_arch_int_enable(void)
Inertial Measurement Unit interface.
static int imu_aspirin_eoc(void)
#define ASPIRIN_GYRO_EOC_IOPIN