mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
Enable OSD support for future hardware
This commit is contained in:
parent
e3a921b762
commit
f2a937ef5b
2 changed files with 10 additions and 1 deletions
|
@ -79,6 +79,14 @@
|
|||
#define MPU6000_CS_PIN PA4
|
||||
#define MPU6000_SPI_INSTANCE SPI1
|
||||
|
||||
#define OSD
|
||||
#define USE_MAX7456
|
||||
#define MAX7456_SPI_INSTANCE SPI1
|
||||
#define MAX7456_SPI_CS_PIN PA3
|
||||
#define MAX7456_NRST_PIN PC14
|
||||
#define MAX7456_SPI_CLK (SPI_CLOCK_STANDARD*2)
|
||||
#define MAX7456_RESTORE_CLK (SPI_CLOCK_FAST)
|
||||
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define USE_ADC
|
||||
#define ADC_INSTANCE ADC1
|
||||
|
|
|
@ -4,4 +4,5 @@ FEATURES = VCP ONBOARDFLASH
|
|||
TARGET_SRC = \
|
||||
drivers/accgyro/accgyro_mpu.c \
|
||||
drivers/accgyro/accgyro_spi_mpu6000.c \
|
||||
drivers/flash_m25p16.c
|
||||
drivers/flash_m25p16.c \
|
||||
drivers/max7456.c
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue