SHOW:
|
|
- or go back to the newest paste.
1 | void exti15_10_irq_handler(void) { | |
2 | ||
3 | /* clear EXTI */ | |
4 | if(EXTI_GetITStatus(EXTI_Line14) != RESET) { | |
5 | EXTI_ClearITPendingBit(EXTI_Line14); | |
6 | itg3200_read(); | |
7 | imu_aspirin.status = AspirinStatusReadingGyro; | |
8 | } | |
9 | } | |
10 | ||
11 | void exti9_5_irq_handler(void) { | |
12 | ||
13 | /* clear EXTI */ | |
14 | if(EXTI_GetITStatus(EXTI_Line5) != RESET) { | |
15 | EXTI_ClearITPendingBit(EXTI_Line5); | |
16 | hmc5843_read(); | |
17 | imu_aspirin.status = AspirinStatusReadingMag; | |
18 | } | |
19 | } |