fix adc pins
This commit is contained in:
parent
1541466dac
commit
f35559dbc6
|
@ -133,16 +133,14 @@
|
||||||
|
|
||||||
// *************** ADC *****************************
|
// *************** ADC *****************************
|
||||||
#define USE_ADC
|
#define USE_ADC
|
||||||
#define ADC3_DMA_STREAM DMA2_Stream0
|
#define CURRENT_METER_ADC_PIN PC1
|
||||||
#define VBAT_ADC_PIN PC0
|
#define VBAT_ADC_PIN PC0
|
||||||
#define CURRENT_METER_ADC_PIN PC2
|
|
||||||
#define RSSI_ADC_PIN PC1
|
|
||||||
|
|
||||||
#define DEFAULT_FEATURES (FEATURE_OSD | FEATURE_TELEMETRY | FEATURE_SOFTSERIAL | FEATURE_AIRMODE)
|
|
||||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||||
#define CURRENT_METER_SCALE_DEFAULT 179
|
#define CURRENT_METER_SCALE_DEFAULT 179
|
||||||
|
|
||||||
|
#define DEFAULT_FEATURES (FEATURE_OSD | FEATURE_TELEMETRY | FEATURE_SOFTSERIAL | FEATURE_AIRMODE)
|
||||||
|
|
||||||
#define USE_ESCSERIAL
|
#define USE_ESCSERIAL
|
||||||
|
|
||||||
#define TARGET_IO_PORTA 0xffff
|
#define TARGET_IO_PORTA 0xffff
|
||||||
|
|
|
@ -33,8 +33,7 @@ resource SPI_MOSI 1 A07
|
||||||
resource SPI_MOSI 2 B15
|
resource SPI_MOSI 2 B15
|
||||||
resource SPI_MOSI 3 B05
|
resource SPI_MOSI 3 B05
|
||||||
resource ADC_BATT 1 C00
|
resource ADC_BATT 1 C00
|
||||||
resource ADC_RSSI 1 C01
|
resource ADC_CURR 1 C01
|
||||||
resource ADC_CURR 1 C02
|
|
||||||
resource FLASH_CS 1 A03
|
resource FLASH_CS 1 A03
|
||||||
resource OSD_CS 1 C15
|
resource OSD_CS 1 C15
|
||||||
resource GYRO_CS 1 D02
|
resource GYRO_CS 1 D02
|
||||||
|
@ -49,8 +48,6 @@ timer C09 1
|
||||||
timer B07 0
|
timer B07 0
|
||||||
|
|
||||||
# dma
|
# dma
|
||||||
dma ADC 1 1
|
|
||||||
# ADC 1: DMA2 Stream 4 Channel 0
|
|
||||||
dma pin A15 0
|
dma pin A15 0
|
||||||
# pin A15: DMA1 Stream 5 Channel 3
|
# pin A15: DMA1 Stream 5 Channel 3
|
||||||
dma pin A08 0
|
dma pin A08 0
|
||||||
|
|
Loading…
Reference in New Issue