mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 00:05:33 +03:00
Merge pull request #7880 from elin-neo/elinf405_update_190327
Update ELINF405 config
This commit is contained in:
commit
9b08bdcd54
4 changed files with 30 additions and 15 deletions
|
@ -29,13 +29,12 @@
|
|||
|
||||
const timerHardware_t timerHardware[USABLE_TIMER_CHANNEL_COUNT] = {
|
||||
#if defined(ELINF405)
|
||||
DEF_TIM(TIM11, CH1, PB9, TIM_USE_ANY, 0, 0),
|
||||
DEF_TIM(TIM8, CH2N, PB0, TIM_USE_MOTOR, 0, 0),
|
||||
DEF_TIM(TIM8, CH3N, PB1, TIM_USE_MOTOR, 0, 0),
|
||||
DEF_TIM(TIM2, CH4, PA3, TIM_USE_MOTOR, 0, 0),
|
||||
DEF_TIM(TIM3, CH3, PB0, TIM_USE_MOTOR, 0, 0),
|
||||
DEF_TIM(TIM3, CH4, PB1, TIM_USE_MOTOR, 0, 0),
|
||||
DEF_TIM(TIM2, CH4, PA3, TIM_USE_MOTOR, 0, 1),
|
||||
DEF_TIM(TIM2, CH3, PA2, TIM_USE_MOTOR, 0, 0),
|
||||
DEF_TIM(TIM1, CH1, PA8, TIM_USE_ANY, 0, 0),
|
||||
DEF_TIM(TIM3, CH4, PC9, TIM_USE_ANY, 0, 0),
|
||||
DEF_TIM(TIM8, CH4, PC9, TIM_USE_ANY, 0, 0),
|
||||
DEF_TIM(TIM4, CH1, PB6, TIM_USE_PPM | TIM_USE_LED, 0, 0),
|
||||
DEF_TIM(TIM4, CH2, PB7, TIM_USE_CAMERA_CONTROL, 0, 0),
|
||||
#else
|
||||
|
|
|
@ -164,6 +164,17 @@
|
|||
#define MAX7456_SPI_CLK (SPI_CLOCK_STANDARD)
|
||||
#define MAX7456_RESTORE_CLK (SPI_CLOCK_FAST)
|
||||
|
||||
#define USE_BARO
|
||||
#define USE_BARO_MS5611
|
||||
#define USE_BARO_BMP085
|
||||
#define USE_BARO_BMP280
|
||||
|
||||
#define USE_MAG
|
||||
#define USE_MAG_HMC5883
|
||||
#define USE_MAG_QMC5883
|
||||
#define USE_MAG_AK8963
|
||||
#define USE_MAG_AK8975
|
||||
|
||||
#else
|
||||
|
||||
#define GYRO_2_EXTI_PIN NONE
|
||||
|
@ -320,7 +331,7 @@
|
|||
|
||||
#if defined(ELINF405)
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#endif
|
||||
|
||||
#if defined(AIRBOTF4SD)
|
||||
|
|
|
@ -14,4 +14,6 @@ TARGET_SRC = \
|
|||
drivers/barometer/barometer_bmp280.c \
|
||||
drivers/compass/compass_hmc5883l.c \
|
||||
drivers/compass/compass_qmc5883l.c \
|
||||
drivers/compass/compass_ak8963.c \
|
||||
drivers/compass/compass_ak8975.c \
|
||||
drivers/max7456.c
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue