commit
851ed5f597
|
@ -20,9 +20,13 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#if defined(STACKX)
|
||||
#define TARGET_BOARD_IDENTIFIER "SXF4"
|
||||
#define USBD_PRODUCT_STRING "Stack-X F4"
|
||||
#else
|
||||
#define TARGET_BOARD_IDENTIFIER "FDF4"
|
||||
|
||||
#define USBD_PRODUCT_STRING "FishDroneF4"
|
||||
#define USBD_PRODUCT_STRING "FishDroneF4"
|
||||
#endif
|
||||
|
||||
#define LED0_PIN PC13
|
||||
#define LED1_PIN PC14
|
||||
|
@ -81,8 +85,8 @@
|
|||
#define USE_SPI_DEVICE_2
|
||||
#define SPI2_NSS_PIN PB12
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI2_MISO_PIN PC2
|
||||
#define SPI2_MOSI_PIN PC3
|
||||
#define SPI2_MISO_PIN PC2
|
||||
#define SPI2_MOSI_PIN PC3
|
||||
|
||||
#define USE_MAX7456
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
|
@ -127,6 +131,11 @@
|
|||
#define USE_ADC
|
||||
#define VBAT_ADC_PIN PC0
|
||||
#define RSSI_ADC_PIN PC1
|
||||
#if defined(STACKX)
|
||||
#define CURRENT_METER_ADC_PIN PA1
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#endif
|
||||
|
||||
// *************** FEATURES ************************
|
||||
#define DEFAULT_FEATURES (FEATURE_OSD)
|
||||
|
|
Loading…
Reference in New Issue