mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 05:15:25 +03:00
SPI3 fix
reintroduce SPI timeout to avoid driver blockage AlienFlight related fixes
This commit is contained in:
parent
fda0794441
commit
47f1d7e955
6 changed files with 167 additions and 20 deletions
|
@ -171,7 +171,7 @@ const extiConfig_t *selectMPUIntExtiConfig(void)
|
|||
|
||||
#ifdef ALIENFLIGHTF3
|
||||
// MPU_INT output on V1 PA15
|
||||
static const extiConfig_t alienWiiF3V1MPUIntExtiConfig = {
|
||||
static const extiConfig_t alienFlightF3V1MPUIntExtiConfig = {
|
||||
.gpioAHBPeripherals = RCC_AHBPeriph_GPIOA,
|
||||
.gpioPort = GPIOA,
|
||||
.gpioPin = Pin_15,
|
||||
|
@ -181,7 +181,7 @@ const extiConfig_t *selectMPUIntExtiConfig(void)
|
|||
.exti_irqn = EXTI15_10_IRQn
|
||||
};
|
||||
// MPU_INT output on V2 PB13
|
||||
static const extiConfig_t alienWiiF3V2MPUIntExtiConfig = {
|
||||
static const extiConfig_t alienFlightF3V2MPUIntExtiConfig = {
|
||||
.gpioAHBPeripherals = RCC_AHBPeriph_GPIOB,
|
||||
.gpioPort = GPIOB,
|
||||
.gpioPin = Pin_13,
|
||||
|
@ -191,9 +191,9 @@ const extiConfig_t *selectMPUIntExtiConfig(void)
|
|||
.exti_irqn = EXTI15_10_IRQn
|
||||
};
|
||||
if (hardwareRevision == AFF3_REV_1) {
|
||||
return &alienWiiF3V1MPUIntExtiConfig;
|
||||
return &alienFlightF3V1MPUIntExtiConfig;
|
||||
} else {
|
||||
return &alienWiiF3V2MPUIntExtiConfig;
|
||||
return &alienFlightF3V2MPUIntExtiConfig;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue