mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 09:45:37 +03:00
[F1] Maintenance to keep F1 buildable
This commit is contained in:
parent
9c3d4603b7
commit
6dcb373257
4 changed files with 13 additions and 10 deletions
|
@ -21,5 +21,6 @@ MEMORY
|
||||||
|
|
||||||
REGION_ALIAS("STACKRAM", RAM)
|
REGION_ALIAS("STACKRAM", RAM)
|
||||||
REGION_ALIAS("FASTRAM", RAM)
|
REGION_ALIAS("FASTRAM", RAM)
|
||||||
|
REGION_ALIAS("CCM", RAM)
|
||||||
|
|
||||||
INCLUDE "stm32_flash.ld"
|
INCLUDE "stm32_flash.ld"
|
||||||
|
|
|
@ -117,7 +117,7 @@ void targetConfiguration(void)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef MAG_INT_EXTI
|
#if defined(USE_MAG) && defined(MAG_INT_EXTI)
|
||||||
if (hardwareRevision < NAZE32_REV5) {
|
if (hardwareRevision < NAZE32_REV5) {
|
||||||
compassConfigMutable()->interruptTag = IO_TAG(PB12);
|
compassConfigMutable()->interruptTag = IO_TAG(PB12);
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,7 @@ void targetBusInit(void)
|
||||||
sensorsPreInit();
|
sensorsPreInit();
|
||||||
spiPreinit();
|
spiPreinit();
|
||||||
#ifdef USE_SPI_DEVICE_2
|
#ifdef USE_SPI_DEVICE_2
|
||||||
spiInit(SPIDEV_2);
|
spiInit(SPIDEV_2, false); // Leading edge not required for legacy sensors
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -101,16 +101,18 @@
|
||||||
//#define ACC_MMA8452_ALIGN CW90_DEG
|
//#define ACC_MMA8452_ALIGN CW90_DEG
|
||||||
//#define ACC_BMA280_ALIGN CW0_DEG
|
//#define ACC_BMA280_ALIGN CW0_DEG
|
||||||
|
|
||||||
#define USE_BARO
|
|
||||||
#define USE_BARO_MS5611 // needed for Flip32 board
|
|
||||||
#define USE_BARO_BMP280
|
|
||||||
|
|
||||||
/*
|
// Barometer dropped to make flash space
|
||||||
#define USE_MAG
|
//#define USE_BARO
|
||||||
#define USE_MAG_HMC5883
|
//#define USE_BARO_MS5611 // needed for Flip32 board
|
||||||
#define MAG_HMC5883_ALIGN CW180_DEG
|
//#define USE_BARO_BMP280
|
||||||
*/
|
|
||||||
|
|
||||||
|
// Compass dropped to make flash space
|
||||||
|
//#define USE_MAG
|
||||||
|
//#define USE_MAG_HMC5883
|
||||||
|
//#define MAG_HMC5883_ALIGN CW180_DEG
|
||||||
|
|
||||||
|
// Rangefinder dropped to make flash space
|
||||||
//#define USE_RANGEFINDER
|
//#define USE_RANGEFINDER
|
||||||
//#define USE_RANGEFINDER_HCSR04
|
//#define USE_RANGEFINDER_HCSR04
|
||||||
//#define RANGEFINDER_HCSR04_TRIGGER_PIN PB0
|
//#define RANGEFINDER_HCSR04_TRIGGER_PIN PB0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue