OMNIBUSF4SD Add onboard flash support

This commit is contained in:
jflyper 2018-04-19 22:34:35 +09:00
parent 0f6d4a2def
commit 08997fa62e
1 changed files with 10 additions and 0 deletions

View File

@ -129,6 +129,10 @@
#define MAX7456_SPI_CLK (SPI_CLOCK_STANDARD) // 10MHz
#define MAX7456_RESTORE_CLK (SPI_CLOCK_FAST)
// Globally configure flashfs and drivers for various flash chips
#define USE_FLASHFS
#define USE_FLASH_M25P16
#if defined(OMNIBUSF4SD)
#define ENABLE_BLACKBOX_LOGGING_ON_SDCARD_BY_DEFAULT
#define USE_SDCARD
@ -143,12 +147,18 @@
#define SDCARD_DMA_CHANNEL_TX DMA1_Stream4
#define SDCARD_DMA_CHANNEL 0
// For variants with SDcard replaced with flash chip
#define M25P16_CS_PIN SDCARD_SPI_CS_PIN
#define M25P16_SPI_INSTANCE SDCARD_SPI_INSTANCE
#elif defined(LUXF4OSD)
#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
#define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
#define M25P16_CS_PIN SPI3_NSS_PIN