Paparazzi UAS  v5.2.2_stable-0-gd6b9f29
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
imu_aspirin_arch.c
Go to the documentation of this file.
1 #include "subsystems/imu.h"
2 
3 
4 #include "LPC21xx.h"
5 
6 //#define ASPIRIN_GYRO_EOC_PINSEL PINSEL1
7 //#define ASPIRIN_GYRO_EOC_PINSEL_BIT 0
8 //#define ASPIRIN_GYRO_EOC_PINSEL_VAL 1
9 
10 
12 {
13 }
14 
16 {
17 }
18 
20 {
21  /* set input pin for gyro eoc */
23 
24  //ASPIRIN_GYRO_EOC_PINSEL |= ASPIRIN_GYRO_EOC_PINSEL_VAL << ASPIRIN_GYRO_EOC_PINSEL_BIT;
25 }
26 
27 
28 /****** the interrupts should be handled in the peripheral drivers *******/
29 
30 /*
31  * Gyro data ready
32  */
34 
35  /* clear EXTI */
36 // if(EXTI_GetITStatus(EXTI_Line14) != RESET)
37 // EXTI_ClearITPendingBit(EXTI_Line14);
38 
39  //imu_aspirin.gyro_eoc = TRUE;
40  //imu_aspirin.status = AspirinStatusReadingGyro;
41 }
42 
43 /*
44  * Accel data ready
45  */
46 void exti2_irq_handler(void) {
47 
48  /* clear EXTI */
49 // if(EXTI_GetITStatus(EXTI_Line2) != RESET)
50 // EXTI_ClearITPendingBit(EXTI_Line2);
51 
52 }
53 
54 /*
55  * Accel end of DMA transfer
56  */
57 void dma1_c4_irq_handler(void) {
58 
59  //imu_aspirin.accel_available = TRUE;
60 }
#define ASPIRIN_GYRO_EOC_IODIR
void imu_aspirin_arch_init(void)
void dma1_c4_irq_handler(void)
#define ASPIRIN_GYRO_EOC_PIN
void imu_aspirin_arch_int_disable(void)
void exti15_10_irq_handler(void)
Inertial Measurement Unit interface.
void exti2_irq_handler(void)
void imu_aspirin_arch_int_enable(void)