Paparazzi UAS  v4.2.2_stable-4-gcc32f65
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
imu_aspirin_arch.c
Go to the documentation of this file.
1 #include "subsystems/imu.h"
2 
3 
4 #include "mcu_periph/i2c.h"
5 
6 
8 {
9 }
10 
12 {
13 }
14 
16 {
17 }
18 
19 
21 
22 // Adxl345Select();
23 // SPI_I2S_SendData(SPI2, addr);
24 // while (SPI_I2S_GetFlagStatus(SPI2, SPI_I2S_FLAG_TXE) == RESET);
25 // SPI_I2S_SendData(SPI2, val);
26 // while (SPI_I2S_GetFlagStatus(SPI2, SPI_I2S_FLAG_TXE) == RESET);
27 // while (SPI_I2S_GetFlagStatus(SPI2, SPI_I2S_FLAG_BSY) == SET);
28 // Adxl345Unselect();
29 
30 }
31 
33 }
34 
35 //void adxl345_start_reading_data(void) {
36 //}
37 
38 /*
39  *
40  * Gyro data ready
41  *
42  */
43 
45 
46  /* clear EXTI */
47 // if(EXTI_GetITStatus(EXTI_Line14) != RESET)
48 // EXTI_ClearITPendingBit(EXTI_Line14);
49 
50  imu_aspirin.gyro_eoc = TRUE;
52 
53 }
54 
55 /*
56  *
57  * Accel data ready
58  *
59  */
60 void exti2_irq_handler(void) {
61 
62  /* clear EXTI */
63 // if(EXTI_GetITStatus(EXTI_Line2) != RESET)
64 // EXTI_ClearITPendingBit(EXTI_Line2);
65 
66 // adxl345_start_reading_data();
67 
68 }
69 
70 /*
71  *
72  * Accel end of DMA transfert
73  *
74  */
75 void dma1_c4_irq_handler(void) {
76 
78 }
struct ImuAspirin imu_aspirin
Definition: imu_aspirin.c:6
void imu_aspirin_arch_init(void)
void dma1_c4_irq_handler(void)
void adxl345_clear_rx_buf(void)
void imu_aspirin_arch_int_disable(void)
uint16_t val[TCOUPLE_NB]
void exti15_10_irq_handler(void)
Inertial Measurement Unit interface.
#define TRUE
Definition: imu_chimu.h:144
void exti2_irq_handler(void)
unsigned char uint8_t
Definition: types.h:14
volatile uint8_t accel_available
Definition: imu_aspirin.h:138
enum AspirinStatus status
Definition: imu_aspirin.h:135
void imu_aspirin_arch_int_enable(void)
void adxl345_write_to_reg(uint8_t addr, uint8_t val)