Fixed IRQ to EXTI3_IRQHandler
Changed IRQ functionname - no handler needed
This commit is contained in:
parent
99e94a818c
commit
fe717dfcc6
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue