1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-26 01:35:35 +03:00

More cleanup of MPU driver code. Support MPU INT on CC3D and Naze32

Rev6.
This commit is contained in:
Dominic Clifton 2015-10-15 23:03:11 +01:00
parent 026afb22c7
commit 9b054f6fde
20 changed files with 210 additions and 211 deletions

View file

@ -124,6 +124,19 @@ const extiConfig_t *selectMPUIntExtiConfig(void)
return &spRacingF3MPUIntExtiConfig;
#endif
#if defined(CC3D)
static const extiConfig_t cc3dMPUIntExtiConfig = {
.gpioAPB2Peripherals = RCC_APB2Periph_GPIOA,
.gpioPort = GPIOA,
.gpioPin = Pin_3,
.exti_port_source = GPIO_PortSourceGPIOA,
.exti_pin_source = GPIO_PinSource3,
.exti_line = EXTI_Line3,
.exti_irqn = EXTI3_IRQn
};
return &cc3dMPUIntExtiConfig;
#endif
return NULL;
}