add I2C support, and remove blackbox flash define
Signed-off-by: Cheng Lin <bnn1044@gmail.com> remove blackbox support
This commit is contained in:
parent
c400186e70
commit
40247b0a1b
|
@ -1,13 +0,0 @@
|
||||||
MCU: STM32F722RE
|
|
||||||
IMU: ICM-20602
|
|
||||||
IMU Interrupt: yes
|
|
||||||
BARO: NO
|
|
||||||
VCP: YES
|
|
||||||
Hardware UARTS: 6 uarts
|
|
||||||
OSD: uses a AB7456 chip
|
|
||||||
Blackbox: SD Card
|
|
||||||
PPM/UART NOT Shared: YES
|
|
||||||
Battery Voltage Sensor: 10:1
|
|
||||||
Current sensor: 0.5 mOhm, 250 Current scale in the setting
|
|
||||||
Integrated Voltage Regulator: 3 A 5v
|
|
||||||
120A Current sensing PDB and 150A burst current for 10S on the current sensing Resistor
|
|
|
@ -51,26 +51,16 @@
|
||||||
#define GYRO_1_ALIGN CW0_DEG
|
#define GYRO_1_ALIGN CW0_DEG
|
||||||
#define ACC_1_ALIGN CW0_DEG
|
#define ACC_1_ALIGN CW0_DEG
|
||||||
|
|
||||||
|
#define USE_MAG
|
||||||
|
#define USE_MAG_HMC5883
|
||||||
|
#define USE_MAG_QMC5883
|
||||||
|
#define MAG_I2C_INSTANCE (I2CDEV_2)
|
||||||
|
|
||||||
#define USE_MAX7456
|
#define USE_MAX7456
|
||||||
#define MAX7456_SPI_INSTANCE SPI3
|
#define MAX7456_SPI_INSTANCE SPI3
|
||||||
#define MAX7456_SPI_CS_PIN PA15
|
#define MAX7456_SPI_CS_PIN PA15
|
||||||
#define MAX7456_SPI_CLK (SPI_CLOCK_STANDARD) // 10MHz
|
#define MAX7456_SPI_CLK (SPI_CLOCK_STANDARD) // 10MHz
|
||||||
#define MAX7456_RESTORE_CLK (SPI_CLOCK_FAST)
|
#define MAX7456_RESTORE_CLK (SPI_CLOCK_FAST)
|
||||||
//define use flash
|
|
||||||
#define FLASH_CS_PIN PB12
|
|
||||||
#define FLASH_SPI_INSTANCE SPI2
|
|
||||||
#define USE_FLASHFS
|
|
||||||
#define USE_FLASH_M25P16
|
|
||||||
//define use SD card
|
|
||||||
|
|
||||||
#define USE_SDCARD
|
|
||||||
#define USE_SDCARD_SPI
|
|
||||||
#define SDCARD_DETECT_PIN PA8
|
|
||||||
#define SDCARD_SPI_INSTANCE SPI2
|
|
||||||
#define SDCARD_SPI_CS_PIN SPI2_NSS_PIN
|
|
||||||
#define SDCARD_DMA_STREAM_TX_FULL DMA1_Stream4
|
|
||||||
#define SDCARD_DMA_CHANNEL 0
|
|
||||||
|
|
||||||
#define USE_VCP
|
#define USE_VCP
|
||||||
|
|
||||||
|
@ -104,6 +94,10 @@
|
||||||
#define USE_ESCSERIAL
|
#define USE_ESCSERIAL
|
||||||
#define ESCSERIAL_TIMER_TX_PIN PB8 // (Hardware=0, PPM)
|
#define ESCSERIAL_TIMER_TX_PIN PB8 // (Hardware=0, PPM)
|
||||||
|
|
||||||
|
#define USE_I2C
|
||||||
|
#define USE_I2C_DEVICE_2 // External I2C
|
||||||
|
#define I2C_DEVICE (I2CDEV_2)
|
||||||
|
|
||||||
#define USE_SPI
|
#define USE_SPI
|
||||||
#define USE_SPI_DEVICE_1
|
#define USE_SPI_DEVICE_1
|
||||||
#define USE_SPI_DEVICE_2
|
#define USE_SPI_DEVICE_2
|
||||||
|
@ -133,9 +127,8 @@
|
||||||
#define CURRENT_METER_SCALE_DEFAULT 250 // 3.3/120A = 25mv/A
|
#define CURRENT_METER_SCALE_DEFAULT 250 // 3.3/120A = 25mv/A
|
||||||
|
|
||||||
#define BINDPLUG_PIN PB2
|
#define BINDPLUG_PIN PB2
|
||||||
#define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
|
|
||||||
#define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL
|
#define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL
|
||||||
#define SERIALRX_UART SERIAL_PORT_UART5
|
#define SERIALRX_UART SERIAL_PORT_UART5
|
||||||
|
|
||||||
#define USE_SERIAL_4WAY_BLHELI_INTERFACE
|
#define USE_SERIAL_4WAY_BLHELI_INTERFACE
|
||||||
#define TARGET_IO_PORTA 0xffff
|
#define TARGET_IO_PORTA 0xffff
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
F7X2RE_TARGETS += $(TARGET)
|
F7X2RE_TARGETS += $(TARGET)
|
||||||
FEATURES += VCP ONBOARDFLASH SDCARD_SPI
|
FEATURES += VCP ONBOARDFLASH
|
||||||
TARGET_SRC = \
|
TARGET_SRC = \
|
||||||
drivers/accgyro/accgyro_mpu.c \
|
drivers/accgyro/accgyro_mpu.c \
|
||||||
drivers/accgyro/accgyro_mpu6500.c \
|
drivers/accgyro/accgyro_mpu6500.c \
|
||||||
|
@ -7,4 +7,6 @@ TARGET_SRC = \
|
||||||
drivers/accgyro/accgyro_spi_mpu6000.c \
|
drivers/accgyro/accgyro_spi_mpu6000.c \
|
||||||
drivers/light_ws2811strip.c \
|
drivers/light_ws2811strip.c \
|
||||||
drivers/light_ws2811strip_hal.c \
|
drivers/light_ws2811strip_hal.c \
|
||||||
|
drivers/compass/compass_hmc5883l.c \
|
||||||
|
drivers/compass/compass_qmc5883l.c \
|
||||||
drivers/max7456.c
|
drivers/max7456.c
|
||||||
|
|
Loading…
Reference in New Issue