Skip to content

Commit

Permalink
[target] BETAFPVF411RX remove softserial, fix flashpin, update id (em…
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdCopter committed Apr 17, 2024
1 parent 935be05 commit a4a34ba
Showing 1 changed file with 15 additions and 36 deletions.
51 changes: 15 additions & 36 deletions src/main/target/BETAFPVF411RX/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,16 @@

#pragma once


#define TARGET_BOARD_IDENTIFIER "BEFH"
#define USBD_PRODUCT_STRING "BETAFPVF411RX"
#define BOARD_NAME BETAFPVF411RX
#define MANUFACTURER_ID BEFH
#define TARGET_BOARD_IDENTIFIER "S411" // generic ID
#define FC_TARGET_MCU STM32F411 // not used in EmuF

#define LED0_PIN PC14

//#define USE_BEEPER
//#define BEEPER_PIN P
//#define BEEPER_INVERTED
#define USE_BEEPER
#define BEEPER_PIN PA14
#define BEEPER_INVERTED

// *************** Gyro & ACC **********************
#define USE_SPI
Expand Down Expand Up @@ -68,24 +69,6 @@
#define BMI270_CS_PIN PA4
#define BMI270_SPI_INSTANCE SPI1

// *************** Baro **************************
//#define USE_I2C

//#define USE_I2C_DEVICE_1
//#define I2C_DEVICE (I2CDEV_1)
//#define I2C1_SCL PB8 // SCL pad
//#define I2C1_SDA PB9 // SDA pad
//#define BARO_I2C_INSTANCE (I2CDEV_1)

//#define USE_BARO //External, connect to I2C1
//#define USE_BARO_BMP280
//#define USE_BARO_MS5611
//#define USE_BARO_BMP085

//#define USE_MAG
//#define USE_MAG_HMC5883 //External, connect to I2C1
//#define USE_MAG_QMC5883

// *************** UART *****************************
#define USE_VCP
#define USE_USB_DETECT
Expand All @@ -98,15 +81,10 @@
#define UART2_RX_PIN PA3
#define UART2_TX_PIN PA2

#define USE_SOFTSERIAL1
#define SOFTSERIAL1_RX_PIN PA8
#define SOFTSERIAL1_TX_PIN PA8

#define SERIAL_PORT_COUNT 4
#define SERIAL_PORT_COUNT 3


// *************** SPI3 CC2500 ***************************

#define USE_SPI_DEVICE_3
#define SPI3_SCK_PIN PB3
#define SPI3_MISO_PIN PB4
Expand Down Expand Up @@ -151,16 +129,20 @@
#define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
#define USE_FLASHFS
#define USE_FLASH_M25P16
#define FLASH_CS_PIN PB2
#define FLASH_CS_PIN PA8
#define FLASH_SPI_INSTANCE SPI2

// *************** ADC *****************************
#define USE_ADC
#define ADC_INSTANCE ADC1
//#define ADC1_DMA_OPT 0 // DMA 2 Stream 0 Channel 0
#define ADC1_DMA_OPT 1
#define ADC1_DMA_STREAM DMA2_Stream4 //# ADC 1: DMA2 Stream 4 Channel 0
#define VBAT_ADC_PIN PA1
#define CURRENT_METER_ADC_PIN PB0
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
#define DEFAULT_CURRENT_METER_SCALE 179

//#define RSSI_ADC_PIN PB1
//#define EXTERNAL1_ADC_PIN PA4

Expand All @@ -174,10 +156,7 @@
//#define PINIO2_PIN PA15 // Camera switcher
//#define USE_PINIOBOX

#define DEFAULT_FEATURES (FEATURE_OSD | FEATURE_TELEMETRY | FEATURE_AIRMODE | FEATURE_SOFTSERIAL)
#define CURRENT_METER_SCALE_DEFAULT 179
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
#define DEFAULT_FEATURES (FEATURE_OSD | FEATURE_TELEMETRY | FEATURE_AIRMODE)

#define TARGET_IO_PORTA 0xffff
#define TARGET_IO_PORTB 0xffff
Expand Down

0 comments on commit a4a34ba

Please sign in to comment.