Merge pull request #5813 from githubDLG/master

Add new target Stack-X
This commit is contained in:
Michael Keller 2018-05-06 18:48:02 +12:00 committed by GitHub
commit 851ed5f597
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 4 deletions

View File

View File

@ -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)