Skip to content

Commit

Permalink
SPRacingH7RF - Target cleanup. (#356)
Browse files Browse the repository at this point in the history
  • Loading branch information
hydra authored Mar 12, 2024
1 parent f326eda commit 917c3f5
Showing 1 changed file with 12 additions and 19 deletions.
31 changes: 12 additions & 19 deletions configs/SPRACINGH7RF/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
#define USE_FIRMWARE_PARTITION

#define USE_SDCARD_SDIO
#define SDCARD_DETECT_PIN PC13
#define SDCARD_DETECT_PIN PC13
#define SDCARD_DETECT_INVERTED
#define SDIO_DEVICE SDIODEV_1
#define SDIO_USE_4BIT 1
Expand Down Expand Up @@ -126,16 +126,24 @@
#define ADC_INSTANCE ADC3
#define ADC1_INSTANCE ADC1
#define ADC3_INSTANCE ADC3
#define CURRENT_METER_2_ADC_PIN PC0
#define CURRENT_METER_2_ADC_INSTANCE ADC3

// Hardware ADC pins and intended usage
#define CURRENT_METER_1_ADC_PIN PC1
#define CURRENT_METER_1_ADC_INSTANCE ADC3
#define CURRENT_METER_2_ADC_PIN PC0
#define CURRENT_METER_2_ADC_INSTANCE ADC3
#define ADC_EXTERNAL1_PIN PC2
#define ADC_EXTERNAL1_INSTANCE ADC3
#define VBAT_ADC_INSTANCE ADC3
#define VIDEO_IN_ADC_PIN PC5
#define VIDEO_OUT_ADC_PIN PC4

// BF usage of ADC pins
#define ADC_VBAT_PIN PC3
#define ADC_RSSI_PIN PC0
#define ADC_CURR_PIN PC1
#define ADC_EXTERNAL1_PIN PC2

#define VTX_ENABLE_PIN PC15
#define PINIO1_PIN VTX_ENABLE_PIN

Expand Down Expand Up @@ -225,22 +233,10 @@
#define LED0_PIN PE5
#define LED1_PIN PE6
#define LED2_PIN NONE

#define SPEKTRUM_RX_BIND_PIN NONE
#define RX_BIND_PLUG_PIN NONE

#define ADC_VBAT_PIN PC3
#define ADC_RSSI_PIN PC0
#define ADC_CURR_PIN PC1
#define ADC_EXTERNAL1_PIN PC2

#define SDCARD_DETECT_PIN PC13
#define SDIO_CK_PIN PC12
#define SDIO_CMD_PIN PD2
#define SDIO_D0_PIN PC8
#define SDIO_D1_PIN PC9
#define SDIO_D2_PIN PC10
#define SDIO_D3_PIN PC11

//#define PINIO1_PIN PC15
#define RX_SPI_CS_PIN PB12
//#define RX_SPI_EXTI_PIN PC6
Expand Down Expand Up @@ -291,9 +287,6 @@
TIMER_PIN_MAP( 7, PA3 , 2, 7 ) \
TIMER_PIN_MAP( 8, PB7 , 1, 8 )


#define ADC3_DMA_OPT 10

#define MAG_I2C_INSTANCE (I2CDEV_1)
#define BARO_I2C_INSTANCE (I2CDEV_2)

Expand Down

0 comments on commit 917c3f5

Please sign in to comment.