Skip to content

Commit

Permalink
Fixed MATEKF722SE target in 3.5.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeller committed Nov 1, 2018
1 parent c1bf517 commit ed90569
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
7 changes: 5 additions & 2 deletions src/main/target/MATEKF722SE/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@
#define USE_MAG
#define USE_MAG_HMC5883
#define USE_MAG_QMC5883
#define USE_MAG_LIS3MDL

// *************** SPI2 OSD ***********************

Expand All @@ -112,7 +111,6 @@
// *************** SPI3 SD BLACKBOX****************

#define USE_SDCARD
#define USE_SDCARD_SPI
#define ENABLE_BLACKBOX_LOGGING_ON_SDCARD_BY_DEFAULT

#define USE_SPI_DEVICE_3
Expand All @@ -126,6 +124,11 @@
#define SDCARD_DMA_STREAM_TX_FULL DMA1_Stream5
#define SDCARD_DMA_CHANNEL 0

// SPI3 is on the APB1 bus whose clock runs at 84MHz. Divide to under 400kHz for init:
#define SDCARD_SPI_INITIALIZATION_CLOCK_DIVIDER 256 // 328kHz
// Divide to under 25MHz for normal operation:
#define SDCARD_SPI_FULL_SPEED_CLOCK_DIVIDER 4 // 21MHz

// *************** UART *****************************

#define USE_VCP
Expand Down
9 changes: 2 additions & 7 deletions src/main/target/MATEKF722SE/target.mk
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
F7X2RE_TARGETS += $(TARGET)
FEATURES += VCP SDCARD_SPI
FEATURES += VCP SDCARD

TARGET_SRC = \
drivers/accgyro/accgyro_mpu.c \
drivers/accgyro/accgyro_spi_mpu6500.c \
drivers/accgyro/accgyro_mpu6500.c \
drivers/accgyro/accgyro_spi_mpu6000.c \
Expand All @@ -11,8 +10,4 @@ TARGET_SRC = \
drivers/barometer/barometer_ms5611.c \
drivers/compass/compass_hmc5883l.c \
drivers/compass/compass_qmc5883l.c \
drivers/compass/compass_lis3mdl.c \
drivers/light_ws2811strip.c \
drivers/light_ws2811strip_hal.c \
drivers/max7456.c \
drivers/pinio.c
drivers/max7456.c

0 comments on commit ed90569

Please sign in to comment.