mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 06:15:16 +03:00
commit
b14abd819d
2 changed files with 12 additions and 1 deletions
1
src/main/target/OMNIBUSF4/VGOODDHF4.mk
Normal file
1
src/main/target/OMNIBUSF4/VGOODDHF4.mk
Normal file
|
@ -0,0 +1 @@
|
||||||
|
#VGOODDHF4.mk file
|
|
@ -19,12 +19,16 @@
|
||||||
#define TARGET_BOARD_IDENTIFIER "CLR4"
|
#define TARGET_BOARD_IDENTIFIER "CLR4"
|
||||||
#elif defined(OMNIBUSF4SD)
|
#elif defined(OMNIBUSF4SD)
|
||||||
#define TARGET_BOARD_IDENTIFIER "OBSD"
|
#define TARGET_BOARD_IDENTIFIER "OBSD"
|
||||||
|
#elif defined(VGOODDHF4)
|
||||||
|
#define TARGET_BOARD_IDENTIFIER "DHF4"
|
||||||
#else
|
#else
|
||||||
#define TARGET_BOARD_IDENTIFIER "OBF4"
|
#define TARGET_BOARD_IDENTIFIER "OBF4"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CL_RACINGF4)
|
#if defined(CL_RACINGF4)
|
||||||
#define USBD_PRODUCT_STRING "CL_RACINGF4"
|
#define USBD_PRODUCT_STRING "CL_RACINGF4"
|
||||||
|
#elif defined(VGOODDHF4)
|
||||||
|
#define USBD_PRODUCT_STRING "VgooddhF4"
|
||||||
#else
|
#else
|
||||||
#define USBD_PRODUCT_STRING "OmnibusF4"
|
#define USBD_PRODUCT_STRING "OmnibusF4"
|
||||||
#endif
|
#endif
|
||||||
|
@ -107,6 +111,12 @@
|
||||||
#define SDCARD_DMA_CHANNEL_TX_COMPLETE_FLAG DMA_FLAG_TCIF4
|
#define SDCARD_DMA_CHANNEL_TX_COMPLETE_FLAG DMA_FLAG_TCIF4
|
||||||
#define SDCARD_DMA_CLK RCC_AHB1Periph_DMA1
|
#define SDCARD_DMA_CLK RCC_AHB1Periph_DMA1
|
||||||
#define SDCARD_DMA_CHANNEL DMA_Channel_0
|
#define SDCARD_DMA_CHANNEL DMA_Channel_0
|
||||||
|
#elif defined(VGOODDHF4)
|
||||||
|
#define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
|
||||||
|
#define M25P16_CS_PIN PB12
|
||||||
|
#define M25P16_SPI_INSTANCE SPI2
|
||||||
|
#define USE_FLASHFS
|
||||||
|
#define USE_FLASH_M25P16
|
||||||
#else
|
#else
|
||||||
#define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
|
#define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
|
||||||
#define M25P16_CS_PIN SPI3_NSS_PIN
|
#define M25P16_CS_PIN SPI3_NSS_PIN
|
||||||
|
@ -150,7 +160,7 @@
|
||||||
#define USE_SPI
|
#define USE_SPI
|
||||||
#define USE_SPI_DEVICE_1
|
#define USE_SPI_DEVICE_1
|
||||||
|
|
||||||
#if defined(OMNIBUSF4SD) || defined(CL_RACINGF4)
|
#if defined(OMNIBUSF4SD) || defined(CL_RACINGF4) || defined(VGOODDHF4)
|
||||||
#define USE_SPI_DEVICE_2
|
#define USE_SPI_DEVICE_2
|
||||||
#define SPI2_NSS_PIN PB12
|
#define SPI2_NSS_PIN PB12
|
||||||
#define SPI2_SCK_PIN PB13
|
#define SPI2_SCK_PIN PB13
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue