mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 20:35:33 +03:00
[VIVAF4AIO] Fix for non-working ACC (#8349)
[VIVAF4AIO] Fix for non-working ACC
This commit is contained in:
parent
2fcde1cbe8
commit
e4030aa4ca
2 changed files with 7 additions and 25 deletions
|
@ -1 +0,0 @@
|
||||||
# VIVAF4AIO has motors 7 and 8 defined.
|
|
|
@ -20,13 +20,8 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#if defined(VIVAF4AIO)
|
#define TARGET_BOARD_IDENTIFIER "DLF4"
|
||||||
# define TARGET_BOARD_IDENTIFIER "VIVA"
|
#define USBD_PRODUCT_STRING "DALRCF405"
|
||||||
# define USBD_PRODUCT_STRING "VIVAF405AIO"
|
|
||||||
#else
|
|
||||||
# define TARGET_BOARD_IDENTIFIER "DLF4"
|
|
||||||
# define USBD_PRODUCT_STRING "DALRCF405"
|
|
||||||
#endif
|
|
||||||
//----------------------------------------
|
//----------------------------------------
|
||||||
|
|
||||||
//LED & BEE-------------------------------
|
//LED & BEE-------------------------------
|
||||||
|
@ -54,22 +49,14 @@
|
||||||
#define GYRO_1_CS_PIN PA4
|
#define GYRO_1_CS_PIN PA4
|
||||||
#define GYRO_1_SPI_INSTANCE SPI1
|
#define GYRO_1_SPI_INSTANCE SPI1
|
||||||
|
|
||||||
#if defined(VIVAF4AIO)
|
#define USE_GYRO_SPI_ICM20689
|
||||||
//------ICM20602
|
#define USE_ACC_SPI_ICM20689
|
||||||
# define USE_GYRO_SPI_ICM20602
|
|
||||||
# define USE_ACC_SPI_ICM20602
|
|
||||||
# define GYRO_1_ALIGN CW0_DEG
|
|
||||||
#else
|
|
||||||
//------ICM20689
|
|
||||||
# define USE_GYRO_SPI_ICM20689
|
|
||||||
# define USE_ACC_SPI_ICM20689
|
|
||||||
# define GYRO_1_ALIGN CW90_DEG
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//------MPU6000
|
//------MPU6000
|
||||||
#define USE_GYRO_SPI_MPU6000
|
#define USE_GYRO_SPI_MPU6000
|
||||||
#define USE_ACC_SPI_MPU6000
|
#define USE_ACC_SPI_MPU6000
|
||||||
|
|
||||||
|
#define GYRO_1_ALIGN CW90_DEG
|
||||||
|
|
||||||
//Baro & MAG-------------------------------
|
//Baro & MAG-------------------------------
|
||||||
#define USE_I2C
|
#define USE_I2C
|
||||||
#define USE_I2C_DEVICE_1
|
#define USE_I2C_DEVICE_1
|
||||||
|
@ -162,9 +149,5 @@
|
||||||
#define TARGET_IO_PORTC 0xffff
|
#define TARGET_IO_PORTC 0xffff
|
||||||
#define TARGET_IO_PORTD (BIT(2))
|
#define TARGET_IO_PORTD (BIT(2))
|
||||||
|
|
||||||
#if defined(VIVAF4AIO)
|
#define USABLE_TIMER_CHANNEL_COUNT 11
|
||||||
# define USABLE_TIMER_CHANNEL_COUNT 9
|
|
||||||
#else
|
|
||||||
# define USABLE_TIMER_CHANNEL_COUNT 11
|
|
||||||
#endif
|
|
||||||
#define USED_TIMERS (TIM_N(1)|TIM_N(2)|TIM_N(3)|TIM_N(4)|TIM_N(8)|TIM_N(12))
|
#define USED_TIMERS (TIM_N(1)|TIM_N(2)|TIM_N(3)|TIM_N(4)|TIM_N(8)|TIM_N(12))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue