Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void exti15_10_irq_handler(void) {
- /* clear EXTI */
- if(EXTI_GetITStatus(EXTI_Line14) != RESET) {
- EXTI_ClearITPendingBit(EXTI_Line14);
- itg3200_read();
- imu_aspirin.status = AspirinStatusReadingGyro;
- }
- }
- void exti9_5_irq_handler(void) {
- /* clear EXTI */
- if(EXTI_GetITStatus(EXTI_Line5) != RESET) {
- EXTI_ClearITPendingBit(EXTI_Line5);
- hmc5843_read();
- imu_aspirin.status = AspirinStatusReadingMag;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement