Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
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
11
void
imu_aspirin_arch_int_enable
(
void
)
12
{
13
}
14
15
void
imu_aspirin_arch_int_disable
(
void
)
16
{
17
}
18
19
void
imu_aspirin_arch_init
(
void
)
20
{
21
/* set input pin for gyro eoc */
22
ClearBit(
ASPIRIN_GYRO_EOC_IODIR
,
ASPIRIN_GYRO_EOC_PIN
);
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
*/
33
void
exti15_10_irq_handler
(
void
)
34
{
35
36
/* clear EXTI */
37
// if(EXTI_GetITStatus(EXTI_Line14) != RESET)
38
// EXTI_ClearITPendingBit(EXTI_Line14);
39
40
//imu_aspirin.gyro_eoc = true;
41
//imu_aspirin.status = AspirinStatusReadingGyro;
42
}
43
44
/*
45
* Accel data ready
46
*/
47
void
exti2_irq_handler
(
void
)
48
{
49
50
/* clear EXTI */
51
// if(EXTI_GetITStatus(EXTI_Line2) != RESET)
52
// EXTI_ClearITPendingBit(EXTI_Line2);
53
54
}
55
56
/*
57
* Accel end of DMA transfer
58
*/
59
void
dma1_c4_irq_handler
(
void
)
60
{
61
62
//imu_aspirin.accel_available = true;
63
}
LPC21xx.h
imu_aspirin_arch_int_disable
void imu_aspirin_arch_int_disable(void)
Definition:
imu_aspirin_arch.c:15
ASPIRIN_GYRO_EOC_IODIR
#define ASPIRIN_GYRO_EOC_IODIR
Definition:
imu_aspirin_arch.h:9
imu.h
ASPIRIN_GYRO_EOC_PIN
#define ASPIRIN_GYRO_EOC_PIN
Definition:
imu_aspirin_arch.h:11
dma1_c4_irq_handler
void dma1_c4_irq_handler(void)
Definition:
imu_aspirin_arch.c:59
exti15_10_irq_handler
void exti15_10_irq_handler(void)
Definition:
imu_aspirin_arch.c:33
exti2_irq_handler
void exti2_irq_handler(void)
Definition:
imu_aspirin_arch.c:47
imu_aspirin_arch_init
void imu_aspirin_arch_init(void)
Definition:
imu_aspirin_arch.c:19
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.c
Generated on Tue Feb 1 2022 13:51:13 for Paparazzi UAS by
1.8.17