mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 08:15:30 +03:00
Merge pull request #7715 from jamming/3.5.x-maintenance
add a new target KakuteF7mini
This commit is contained in:
parent
f67999f5d9
commit
5b76f84b9a
5 changed files with 120 additions and 6 deletions
1
src/main/target/KAKUTEF7/KAKUTEF7MINI.mk
Normal file
1
src/main/target/KAKUTEF7/KAKUTEF7MINI.mk
Normal file
|
@ -0,0 +1 @@
|
|||
#KAKUTEF7MINI.mk file
|
|
@ -24,13 +24,12 @@
|
|||
|
||||
#ifdef KAKUTEF7V2
|
||||
#define TARGET_BOARD_IDENTIFIER "KT76"
|
||||
#define USBD_PRODUCT_STRING "KakuteF7-V2"
|
||||
#elif defined(KAKUTEF7MINI)
|
||||
#define TARGET_BOARD_IDENTIFIER "KF7M"
|
||||
#define USBD_PRODUCT_STRING "KakuteF7-Mini"
|
||||
#else
|
||||
#define TARGET_BOARD_IDENTIFIER "KTF7"
|
||||
#endif
|
||||
|
||||
#ifdef KAKUTEF7V2
|
||||
#define USBD_PRODUCT_STRING "KakuteF7-V2"
|
||||
#else
|
||||
#define USBD_PRODUCT_STRING "KakuteF7"
|
||||
#endif
|
||||
|
||||
|
@ -122,6 +121,13 @@
|
|||
#define MAX7456_SPI_CLK (SPI_CLOCK_STANDARD) // 10MHz
|
||||
#define MAX7456_RESTORE_CLK (SPI_CLOCK_FAST)
|
||||
|
||||
#if defined(KAKUTEF7MINI)
|
||||
#define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
|
||||
#define USE_FLASHFS
|
||||
#define USE_FLASH_M25P16
|
||||
#define FLASH_CS_PIN SPI1_NSS_PIN
|
||||
#define FLASH_SPI_INSTANCE SPI1
|
||||
#else
|
||||
#define USE_SDCARD
|
||||
#define USE_SDCARD_SPI
|
||||
#define SDCARD_DETECT_INVERTED
|
||||
|
@ -130,6 +136,9 @@
|
|||
#define SDCARD_SPI_CS_PIN SPI1_NSS_PIN
|
||||
#define SPI1_TX_DMA_OPT 1 // DMA 2 Stream 5 Channel 3
|
||||
|
||||
#define SDCARD_DMA_STREAM_TX_FULL DMA2_Stream5
|
||||
#endif
|
||||
|
||||
#define USE_I2C
|
||||
#define USE_I2C_DEVICE_1
|
||||
#define I2C_DEVICE (I2CDEV_1)
|
||||
|
|
|
@ -4,7 +4,11 @@ else
|
|||
F7X5XG_TARGETS += $(TARGET)
|
||||
endif
|
||||
|
||||
ifeq ($(TARGET), KAKUTEF7MINI)
|
||||
FEATURES += VCP ONBOARDFLASH
|
||||
else
|
||||
FEATURES += SDCARD_SPI VCP
|
||||
endif
|
||||
|
||||
TARGET_SRC = \
|
||||
drivers/accgyro/accgyro_mpu.c \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue