Fixed IRQ to EXTI3_IRQHandler

Changed IRQ functionname - no handler needed
This commit is contained in:
henn1001 2015-09-18 18:46:54 +02:00
parent 99e94a818c
commit fe717dfcc6
3 changed files with 4 additions and 6 deletions

View File

@ -143,8 +143,9 @@ void checkMPU6000DataReady(bool *mpuDataReadyPtr);
static bool mpuDataReady; static bool mpuDataReady;
static const mpu6000Config_t *mpu6000Config = NULL; static const mpu6000Config_t *mpu6000Config = NULL;
//
void MPU_DATA_READY_EXTI_Handler(void) //void MPU_DATA_READY_EXTI_Handler(void)
void EXTI3_IRQHandler(void)
{ {
if (EXTI_GetITStatus(mpu6000Config->exti_line) == RESET) { if (EXTI_GetITStatus(mpu6000Config->exti_line) == RESET) {
return; return;
@ -198,8 +199,6 @@ void configureMPUDataReadyInterruptHandling(void)
} }
#endif #endif
registerExti15_10_CallbackHandler(MPU_DATA_READY_EXTI_Handler);
EXTI_ClearITPendingBit(mpu6000Config->exti_line); EXTI_ClearITPendingBit(mpu6000Config->exti_line);
EXTI_InitTypeDef EXTIInit; EXTI_InitTypeDef EXTIInit;

View File

@ -149,7 +149,7 @@ const mpu6000Config_t *selectMPU6000Config(void)
.exti_port_source = GPIO_PortSourceGPIOA, .exti_port_source = GPIO_PortSourceGPIOA,
.exti_pin_source = GPIO_PinSource3, .exti_pin_source = GPIO_PinSource3,
.exti_line = EXTI_Line3, .exti_line = EXTI_Line3,
.exti_irqn = EXTI15_10_IRQn .exti_irqn = EXTI3_IRQn
}; };
return &CC3DMPU6000Config; return &CC3DMPU6000Config;
#endif #endif

View File

@ -55,7 +55,6 @@
#define ACC_SPI_MPU6000_ALIGN CW270_DEG #define ACC_SPI_MPU6000_ALIGN CW270_DEG
// MPU6000 interrupts // MPU6000 interrupts
#define EXTI15_10_CALLBACK_HANDLER_COUNT 1 // MPU data ready
#define USE_MPU_DATA_READY_SIGNAL #define USE_MPU_DATA_READY_SIGNAL
// External I2C BARO // External I2C BARO