1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 22:35:23 +03:00

SPRACINGH7EXTREME - First STM32H750 betaflight target.

SPRACINGH7EXTREME - Disable requirement for custom gyro alignment and
dual gyro.

Requires custom gyro rotation code to be merged first, see:

https://github.com/betaflight/betaflight/pull/7845
https://github.com/betaflight/betaflight/pull/8474

SPRACINGH7EXTREME - Add boards documentation and images.

Add SPRacingH7EXTREME to the list of official targets.

SPRACINGH7EXTREME - Add unified target config.

Note: untested as no unified target exists for STM32H750+EXST yet.

SPRACINGH7EXTREME - Use correct gyro settings now that #8474 is merged.

SPRACINGH7EXTREME - Combine target files.

SPRACINGH7EXTREME - Update unified target config.
This commit is contained in:
Dominic Clifton 2019-03-14 17:36:33 +01:00 committed by mikeller
parent b2b8ff6bdc
commit a0d8b57fd4
13 changed files with 689 additions and 0 deletions

View file

@ -0,0 +1,137 @@
# Board - Seriously Pro SP Racing H7 EXTREME
The SPRacingH7EXTREME flight controller features a 400Mhz H7 CPU that runs twice as fast as the previous generation F7 boards.
A fast control-loop is what you need for perfect flight performance, the H7 at 400Mhz gives you all the processing power you need.
The SPRacingH7EXTREME has integrated OSD (on-screen-display) and PDB (power distribution board) and features all the latest technologies available.
Full details available on the website, here:
http://seriouslypro.com/spracingh7extreme
Purchasing boards directly from SeriouslyPro / SP Racing and official retailers helps fund software development.
Shop here: https://shop.seriouslypro.com/sp-racing-h7-extreme
## Background
The SPRacingH7EXTREME FC is the first STM32H750 based FC to ship with Betaflight. It is unique among Cleanflight/Betaflight based FCs as it is the first
to use the External Storage (EXST) build system which allows a bootloader to load the flight-controller firmware from either external flash or via SD card.
See the EXST documentation for more details on the EXST system.
## Hardware Features
The SPRacingH7EXTREME can be stand-alone or be turned into a stack that allows fitting of TBS Unify Pro or FX578-2-SPI VTX modules.
1. SPRacingH7EXTREME FC/PDB - https://shop.seriouslypro.com/sp-racing-h7-extreme
2. SPRacingStackingVTX - https://shop.seriouslypro.com/sp-racing-f7-vtx-board-without-vtx-module
### SPRacingH7EXTREME FC/PDB board.
![SPRacingH7EXTREME top](images/spracingh7extreme-pcb-top.jpg)
![SPRacingH7EXTREME bottom](images/spracingh7extreme-pcb-bottom.jpg)
* STM32H750 CPU, 400MHz inc FPU
* 128MByte 1GBit NAND flash via QuadSPI
* 2x Low-noise ICM20602 accelerometer/gyro with dedicated VREG (connected via SPI)
* BMP388 Barometer - bottom mounted for wind isolation (I2C + interrupt)
* OSD with customisable layout, profiles and configuration menu system
* On-board MEMS microphone
* PID-Audio with CPU audio out and audio mixer
* MicroSD card slot (SD/SDHC, upto 32GB) connected via 4-Bit SDIO
* Durable 1.6mm thick 6-layer copper gold-plated PCB with cutouts for battery wires
* Current sensor/Amperage meter (110A)
* 2-6S BEC 5V Switching regulator, 1A
* TVS protection diode
* Dedicated 500mA VREG for gyros with extra filter capacitors
* Second 500mA VREG for CPU, and other peripherals
* Transponder circuitry (LED and code available separately)
* Buzzer circuitry
* RSSI Analog and PWM circuit
* 12 motor outputs (4 by motor pads, 4 in the middle, and 4 on stacking connector)
* 1x SPI breakout onto stacking connector
* 6 Serial Ports (5x TX+RX + 1x TX only bi-directional)
* 3 LEDs for 5V, 3V and STATUS (Green, Blue, Red)
* 37x37mm PCB with 30.5mm mounting hole pattern
* 4mm mounting holes for soft-mount grommets and M3 bolts
* FPV stack weight of FC/PDB + OSD/VTX ~16 grams
* MicroUSB socket for configuration and ESC programming
* Bootable from SD Card or External flash.
* Supplied with 4x soft-mount grommets.
* Optionally supplied with 2x Audio/Video cables. (Camera Input, VTX Output)
* Optionally supplied with 2x Audio/Video PicoBlade connectors. (for Camera Input, for VTX Output)
* Optional receiver cables for FrSky XSR receivers and 3-pin style receivers available
* 4x pairs of solder pads for ESC Signal/GND connections (Bi-Directional DSHOT compatible)
* 4x pairs of solder pads for ESC Power/GND connections
* 4x special solder pads with through-holes for Camera In + Camera OSD
* 4x special solder pads with through-holes for Audio+Video Out (VTX)
* 1x solder pad for PWM RSSI
* 1x solder pad for LED Strip
* 1x solder pad for DAC out
* 1x solder pad for ADC in (for 4in1 current sensor output, etc)
* 2x solder pads for 5V/GND power
* 2x large solder pads with cut-outs for battery wires
* 2x large solder pads for 4in1 ESC power connection
* 1x 2pin though-holes for pin headers for UART4 RX/TX
* 1x 2pin though-holes for pin headers for BUZZER
* 1x 2pin though-holes for pin headers for 5V/GND
* 1x 2pin though-holes for pin headers for IR Transponder LED
* 1x 4pin though-holes for pin headers for Receiver (GND/5V/UART1 RX+TX)
* 1x 8pin bottom mounted, JST-SH socket for GND/5V/I2C/UART3/UART8 (IO port, e.g. for external GPS module)
* 1x 6pin bottom mounted, PicoBlade receiver socket for UART1(PPM/SerialRX)/UART2 TX(Telemetry)/RSSI/GND/5V
* 1x 4pin top mounted JST-SH socket for SWD debugging
* 1x 4pin top mounted JST-SH socket for UART5 RX+TX/GPIO/GND
* 1x 12pin stacking connector (SPI, UART8, DSHOT/PWM 9-12/TIM3-CH1-4, 5V BEC, 3.3V, etc)
* 1x Side-press BOOT button (top mounted)
* 1x Side-press VTX/Settings button (top mounted)
* 1x Mixer control (top mounted, near Camera input/output)
* 2x 5V/BATTERY voltage selectors for Camera and VTX outputs
* 1x Analog/Digital RSSI selector
* Cleanflight and Betaflight logos - they're on there, you just have to find them
* SP Racing logo
* 2x Additional easter eggs!
### SPRacingStackingVTX board.
![SPRacingStackingVTX top](images/spracingstackingvtx-pcb-top.jpg)
![SPRacingStackingVTX bottom](images/spracingstackingvtx-pcb-bottom.jpg)
![SPRacingStackingVTX with FX578-2-SPI VTX](images/spracingstackingvtx-with-module.jpg)
![SPRacingStackingVTX with TBS Unify Pro VTX](images/spracingstackingvtx-with-unify-pro.jpg)
* Fits Optional RTC6705 VTX 25/200mw output (SPI modules only)
* Fits Optional TBS Unify Pro VTX with no-wire SmartAudio connectivity
* Fits Optional FrSKy XM+ Full Range Diversity Receiver
* Remote VTX ON/OFF circuitry (for RTC6705 modules)
* 36.8x36.8mm PCB with 30.5mm mounting hole pattern
* Supplied with 4x soft-mount grommets.
* Supplied with very low profile stacking I/O connectors (2x 2pin male + 2x 2pin female)
* Supplied with very low profile stacking A/V connectors (1x 4pin male + 1x 4pin female)
* Cleanflight logos
* SPRacing logo
* 1x U.FL socket for antenna connection, gold plated. (For RTC6705 module)
* 1x set of solder pad for edge mount coax jack socket. (For RTC6705 module)
* 1x 4pin though-holes for pin headers for UART1 Receiver/Bluetooth/etc (RX/TX/5V/GND)
* 1x 4pin though-holes for pin headers for UART4 Bluetooth/Wifi/GPS/etc (RX/TX/5V/GND)
* 4x 2pin though-holes for stacking onto H7 EXTREME (5V/GND/UART 4 RX+TX)
* 1x 2pin though-holes for pin headers for BUZZER Out
* 1x 3pin though-holes for pin headers for JST-ZH camera socket
* 1x 6pin though-holes for pin headers for IR in/out + Buzzer In
* 1x 3pin though-holes for JST-ZH connector for CAMERA-through connections
* 1x set of SOIC-8 209mil pads for user-installable SPI Flash Chip (e.g. 25Q064A
* 2x SmartAudio enable jumpers (UART8 TX when using TBS Unify)
## Connection Diagrams
Connection diagrams can be found on the website, here:
http://seriouslypro.com/spracingh7extreme#diagrams
## Manual
The manual can be downloaded from the website, here:
http://seriouslypro.com/files/SPRacingH7EXTREME-Manual-latest.pdf

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 986 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 570 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 591 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 723 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 657 KiB

View file

@ -12,6 +12,7 @@ OFFICIAL_TARGETS = \
SPRACINGF3NEO \ SPRACINGF3NEO \
SPRACINGF4EVO \ SPRACINGF4EVO \
SPRACINGF7DUAL \ SPRACINGF7DUAL \
SPRACINGH7EXTREME \
STM32F3DISCOVERY STM32F3DISCOVERY
ALT_TARGET_PATHS = $(filter-out %/target,$(basename $(wildcard $(ROOT)/src/main/target/*/*.mk))) ALT_TARGET_PATHS = $(filter-out %/target,$(basename $(wildcard $(ROOT)/src/main/target/*/*.mk)))

View file

@ -0,0 +1,44 @@
/*
* This file is part of Cleanflight and Betaflight.
*
* Cleanflight and Betaflight are free software. You can redistribute
* this software and/or modify this software under the terms of the
* GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option)
* any later version.
*
* Cleanflight and Betaflight are distributed in the hope that they
* will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this software.
*
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdbool.h>
#include <stdint.h>
#include "platform.h"
#ifdef USE_TARGET_CONFIG
#include "config_helper.h"
#include "io/serial.h"
#include "osd/osd.h"
#include "pg/pg.h"
static targetSerialPortFunction_t targetSerialPortFunction[] = {
{ SERIAL_PORT_USART1, FUNCTION_MSP },
{ SERIAL_PORT_USART2, FUNCTION_MSP },
};
void targetConfiguration(void)
{
osdConfigMutable()->core_temp_alarm = 85;
targetSerialPortFunctionConfig(targetSerialPortFunction, ARRAYLEN(targetSerialPortFunction));
}
#endif

View file

@ -0,0 +1,58 @@
/*
* This file is part of Cleanflight and Betaflight.
*
* Cleanflight and Betaflight are free software. You can redistribute
* this software and/or modify this software under the terms of the
* GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option)
* any later version.
*
* Cleanflight and Betaflight are distributed in the hope that they
* will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this software.
*
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdint.h>
#include "platform.h"
#include "drivers/io.h"
#include "drivers/dma.h"
#include "drivers/timer.h"
#include "drivers/timer_def.h"
const timerHardware_t timerHardware[USABLE_TIMER_CHANNEL_COUNT] = {
DEF_TIM(TIM1, CH1, PA8, TIM_USE_LED, 0, 10, 0 ), // LED Strip
DEF_TIM(TIM2, CH4, PB11, TIM_USE_TRANSPONDER, 0, 11, 0 ), // Transponder
DEF_TIM(TIM12, CH2, PB15, TIM_USE_PPM | TIM_USE_PWM, 0, 0, 0 ), // Also USART1 RX
DEF_TIM(TIM15, CH1, PE5, TIM_USE_CAMERA_CONTROL, 0, 0, 0 ),
DEF_TIM(TIM15, CH2, PE6, TIM_USE_NONE, 0, 0, 0 ),
DEF_TIM(TIM5, CH1, PA0, TIM_USE_MOTOR, 0, 0, 0 ), // M1
DEF_TIM(TIM5, CH2, PA1, TIM_USE_MOTOR, 0, 1, 0 ),
DEF_TIM(TIM5, CH3, PA2, TIM_USE_MOTOR, 0, 2, 0 ),
DEF_TIM(TIM5, CH4, PA3, TIM_USE_MOTOR, 0, 3, 0 ), // M4
DEF_TIM(TIM4, CH1, PB6, TIM_USE_MOTOR, 0, 4, 1 ), // M5
DEF_TIM(TIM4, CH2, PB7, TIM_USE_MOTOR, 0, 5, 1 ), // M6
DEF_TIM(TIM8, CH1, PC6, TIM_USE_MOTOR, 0, 6, 2 ), // M7
DEF_TIM(TIM8, CH2, PC7, TIM_USE_MOTOR, 0, 7, 2 ), // M8
DEF_TIM(TIM4, CH3, PD14, TIM_USE_MOTOR, 0, 12, 0 ), // M9
DEF_TIM(TIM4, CH4, PD15, TIM_USE_MOTOR, 0, 0, 0 ), // M10 // Note: No DMA on TIM4_CH4, can use with BURST DSHOT using TIM4_UP
DEF_TIM(TIM3, CH1, PA6, TIM_USE_NONE, 0, 0, 0 ), // Also TIM13/CH1
DEF_TIM(TIM3, CH2, PA7, TIM_USE_NONE, 0, 0, 0 ), // Also TIM14/CH1
DEF_TIM(TIM3, CH3, PB0, TIM_USE_NONE, 0, 0, 0 ), // Also TIM8/CH2_N
DEF_TIM(TIM3, CH4, PB1, TIM_USE_NONE, 0, 0, 0 ), // Also TIM8/CH3_N
};

View file

@ -0,0 +1,240 @@
/*
* This file is part of Cleanflight and Betaflight.
*
* Cleanflight and Betaflight are free software. You can redistribute
* this software and/or modify this software under the terms of the
* GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option)
* any later version.
*
* Cleanflight and Betaflight are distributed in the hope that they
* will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this software.
*
* If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#define TARGET_BOARD_IDENTIFIER "SP7E"
#define USBD_PRODUCT_STRING "SPRacingH7EXTREME"
#define USE_TARGET_CONFIG
#define LED0_PIN PE3
#define USE_BEEPER
#define BEEPER_PIN PD7
#define BEEPER_INVERTED
// Force two buttons to look at the single button so config reset on button works
#define USE_BUTTONS
#define BUTTON_A_PIN PE4
#define BUTTON_A_PIN_INVERTED // Active high
#define BUTTON_B_PIN PE4
#define BUTTON_B_PIN_INVERTED // Active high
#define USE_QUADSPI
#define USE_QUADSPI_DEVICE_1
#define QUADSPI1_SCK_PIN PB2
#define QUADSPI1_BK1_IO0_PIN PD11
#define QUADSPI1_BK1_IO1_PIN PD12
#define QUADSPI1_BK1_IO2_PIN PE2
#define QUADSPI1_BK1_IO3_PIN PD13
#define QUADSPI1_BK1_CS_PIN PB10
#define QUADSPI1_BK2_IO0_PIN PE7
#define QUADSPI1_BK2_IO1_PIN PE8
#define QUADSPI1_BK2_IO2_PIN PE9
#define QUADSPI1_BK2_IO3_PIN PE10
#define QUADSPI1_BK2_CS_PIN NONE
#define QUADSPI1_MODE QUADSPI_MODE_BK1_ONLY
#define QUADSPI1_CS_FLAGS (QUADSPI_BK1_CS_HARDWARE | QUADSPI_BK2_CS_NONE | QUADSPI_CS_MODE_LINKED)
#define USE_FLASH_CHIP
#define EEPROM_IN_EXTERNAL_FLASH
//#define EEPROM_IN_SDCARD
//#define EEPROM_IN_RAM
#if !defined(EEPROM_IN_RAM) && !defined(EEPROM_IN_SDCARD) && !defined(EEPROM_IN_EXTERNAL_FLASH)
#error "EEPROM storage location not defined"
#endif
#define USE_UART
#define USE_UART1
#define UART1_RX_PIN PB15
#define UART1_TX_PIN PB14
#define USE_UART2
#define UART2_RX_PIN NONE
#define UART2_TX_PIN PD5 // TX pin is bidirectional.
#define USE_UART3
#define UART3_RX_PIN PD9
#define UART3_TX_PIN PD8
#define USE_UART4
#define UART4_RX_PIN PD0
#define UART4_TX_PIN PD1
#define USE_UART5
#define UART5_RX_PIN PB5
#define UART5_TX_PIN PB13
#define USE_UART6
#define UART6_RX_PIN PC7 // aka M7
#define UART6_TX_PIN PC6 // aka M8
#define USE_UART8
#define UART8_RX_PIN PE0
#define UART8_TX_PIN PE1
#define USE_VCP
#define USE_USB_ID
#define SERIAL_PORT_COUNT 8
#define USE_SPI
#define USE_SPI_DEVICE_2
#define SPI2_SCK_PIN PD3
#define SPI2_MISO_PIN PC2
#define SPI2_MOSI_PIN PC3
#define SPI2_NSS_PIN PB12
#define USE_SPI_DEVICE_3
#define SPI3_SCK_PIN PB3
#define SPI3_MISO_PIN PB4
#define SPI3_MOSI_PIN PD6
#define SPI3_NSS_PIN PA15
#define USE_SPI_DEVICE_4
#define SPI4_SCK_PIN PE12
#define SPI4_MISO_PIN PE13
#define SPI4_MOSI_PIN PE14
#define SPI4_NSS_PIN PE11
#define USE_I2C
#define USE_I2C_DEVICE_1
#define I2C1_SCL PB8
#define I2C1_SDA PB9
#define I2C_DEVICE (I2CDEV_1)
#define USE_MAG
#define USE_MAG_HMC5883
#define USE_BARO
#define USE_BARO_BMP388
#define USE_GYRO
#define USE_GYRO_SPI_MPU6500
#define USE_MULTI_GYRO
#define DEBUG_MODE DEBUG_DUAL_GYRO_DIFF
#undef USE_GYRO_REGISTER_DUMP
#define USE_EXTI
#define USE_GYRO_EXTI
#define GYRO_1_EXTI_PIN PD4
#define GYRO_2_EXTI_PIN PE15
#define USE_MPU_DATA_READY_SIGNAL
#define ENSURE_MPU_DATA_READY_IS_LOW
#define GYRO_1_CS_PIN SPI3_NSS_PIN
#define GYRO_1_SPI_INSTANCE SPI3
#define GYRO_2_CS_PIN SPI2_NSS_PIN
#define GYRO_2_SPI_INSTANCE SPI2
#define USE_ACC
#define USE_ACC_SPI_MPU6500
#define GYRO_1_ALIGN CW180_DEG
#define GYRO_2_ALIGN ALIGN_CUSTOM
#define GYRO_2_CUSTOM_ALIGN SENSOR_ALIGNMENT( 0, 0, 225)
#define GYRO_CONFIG_USE_GYRO_DEFAULT GYRO_CONFIG_USE_GYRO_BOTH
#define USE_FLASHFS
#define USE_FLASH_TOOLS
#define USE_FLASH_W25N01G
#define FLASH_QUADSPI_INSTANCE QUADSPI
#define USE_PID_AUDIO
#define USE_TRANSPONDER
#define USE_MAX7456
#define MAX7456_SPI_INSTANCE SPI4
#define MAX7456_SPI_CS_PIN SPI4_NSS_PIN
#define USE_VTX_RTC6705
#define USE_VTX_RTC6705_SOFTSPI
#define VTX_RTC6705_OPTIONAL // VTX/OSD board is OPTIONAL
#define RTC6705_POWER_PIN PB1 // J14-6
#define RTC6705_CS_PIN PB0 // J14-5
#define RTC6705_SPICLK_PIN PA7 // J14-4
#define RTC6705_SPI_MOSI_PIN PA6 // J14-3
#ifdef USE_DMA_SPEC
//#define UART1_TX_DMA_OPT 0
//#define UART2_TX_DMA_OPT 1
//#define UART3_TX_DMA_OPT 2
//#define UART4_TX_DMA_OPT 3
//#define UART5_TX_DMA_OPT 4
//#define UART6_TX_DMA_OPT 5
//#define UART7_TX_DMA_OPT 6
//#define UART8_TX_DMA_OPT 7
#define ADC1_DMA_OPT 8
#define ADC3_DMA_OPT 9
//#define ADC2_DMA_OPT 10 // ADC2 not used.
#else
#define ADC1_DMA_STREAM DMA2_Stream0
#define ADC3_DMA_STREAM DMA2_Stream1
//#define ADC2_DMA_STREAM DMA2_Stream2 // ADC2 not used.
#endif
#define USE_SDCARD
#define USE_SDCARD_SDIO
#define SDCARD_DETECT_PIN PD10
#define SDCARD_DETECT_INVERTED
#define ENABLE_BLACKBOX_LOGGING_ON_SDCARD_BY_DEFAULT
#define USE_ADC
#define USE_ADC_INTERNAL // ADC3
#define ADC1_INSTANCE ADC1
#define ADC2_INSTANCE ADC2 // ADC2 not used
#define ADC3_INSTANCE ADC3 // ADC3 only for core temp and vrefint
#define RSSI_ADC_PIN PC4 // ADC123
#define VBAT_ADC_PIN PC1 // ADC12
#define CURRENT_METER_ADC_PIN PC0 // ADC123
#define EXTERNAL1_ADC_PIN PC5 // ADC12
#define CURRENT_METER_SCALE_DEFAULT 225
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
#define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL
#define DEFAULT_FEATURES (FEATURE_TRANSPONDER | FEATURE_RSSI_ADC | FEATURE_TELEMETRY | FEATURE_OSD | FEATURE_LED_STRIP)
#define TARGET_IO_PORTA 0xffff
#define TARGET_IO_PORTB 0xffff
#define TARGET_IO_PORTC 0xffff
#define TARGET_IO_PORTD 0xffff
#define TARGET_IO_PORTE 0xffff
#define TARGET_IO_PORTF 0xffff
#define TARGET_IO_PORTG 0xffff
#define USABLE_TIMER_CHANNEL_COUNT 19
#define USED_TIMERS ( TIM_N(1) | TIM_N(2) | TIM_N(3) | TIM_N(4) | TIM_N(5) | TIM_N(8) | TIM_N(12) | TIM_N(15) )

View file

@ -0,0 +1,19 @@
H750xB_TARGETS += $(TARGET)
HSE_VALUE = 8000000
FEATURES += VCP ONBOARDFLASH SDCARD_SDIO
EXST = yes
TARGET_SRC += \
drivers/bus_quadspi_hal.c \
drivers/bus_quadspi.c \
drivers/max7456.c \
drivers/accgyro/accgyro_mpu.c \
drivers/accgyro/accgyro_mpu6500.c \
drivers/accgyro/accgyro_spi_mpu6500.c \
drivers/compass/compass_hmc5883l.c \
drivers/barometer/barometer_bmp388.c \
drivers/vtx_rtc6705_soft_spi.c \

View file

@ -0,0 +1,190 @@
# Betaflight / SPRACINGH7EXTREME (SP7E) 4.1.0 Jul 10 2019 / 21:50:29 (fe9d4fcc2) MSP API: 1.42
board_name SPRACINGH7EXTREME
manufacturer_id SPRO
# resources
resource BEEPER 1 D07
resource MOTOR 1 A00
resource MOTOR 2 A01
resource MOTOR 3 A02
resource MOTOR 4 A03
resource MOTOR 5 B06
resource MOTOR 6 B07
resource MOTOR 7 C06
resource MOTOR 8 C07
resource PPM 1 B15
resource PWM 1 B15
resource LED_STRIP 1 A08
resource SERIAL_TX 1 B14
resource SERIAL_TX 2 D05
resource SERIAL_TX 3 D08
resource SERIAL_TX 4 D01
resource SERIAL_TX 5 B13
resource SERIAL_TX 6 C06
resource SERIAL_TX 8 E01
resource SERIAL_RX 1 B15
resource SERIAL_RX 3 D09
resource SERIAL_RX 4 D00
resource SERIAL_RX 5 B05
resource SERIAL_RX 6 C07
resource SERIAL_RX 8 E00
resource I2C_SCL 1 B08
resource I2C_SDA 1 B09
resource LED 1 E03
resource TRANSPONDER 1 B11
resource SPI_SCK 2 D03
resource SPI_SCK 3 B03
resource SPI_SCK 4 E12
resource SPI_MISO 2 C02
resource SPI_MISO 3 B04
resource SPI_MISO 4 E13
resource SPI_MOSI 2 C03
resource SPI_MOSI 3 D06
resource SPI_MOSI 4 E14
resource CAMERA_CONTROL 1 E05
resource ADC_BATT 1 C01
resource ADC_RSSI 1 C04
resource ADC_CURR 1 C00
resource ADC_EXT 1 C05
resource SDCARD_DETECT 1 D10
resource OSD_CS 1 E11
resource GYRO_EXTI 1 D04
resource GYRO_EXTI 2 E15
resource GYRO_CS 1 A15
resource GYRO_CS 2 B12
resource VTX_POWER 1 B01
resource VTX_CS 1 B00
resource VTX_DATA 1 A06
resource VTX_CLK 1 A07
# timer
timer A08 AF1
# pin A08: TIM1 CH1 (AF1)
timer B11 AF1
# pin B11: TIM2 CH4 (AF1)
timer B15 AF2
# pin B15: TIM12 CH2 (AF2)
timer E05 AF4
# pin E05: TIM15 CH1 (AF4)
timer E06 AF4
# pin E06: TIM15 CH2 (AF4)
timer A00 AF2
# pin A00: TIM5 CH1 (AF2)
timer A01 AF2
# pin A01: TIM5 CH2 (AF2)
timer A02 AF2
# pin A02: TIM5 CH3 (AF2)
timer A03 AF2
# pin A03: TIM5 CH4 (AF2)
timer B06 AF2
# pin B06: TIM4 CH1 (AF2)
timer B07 AF2
# pin B07: TIM4 CH2 (AF2)
timer C06 AF3
# pin C06: TIM8 CH1 (AF3)
timer C07 AF3
# pin C07: TIM8 CH2 (AF3)
timer D14 AF2
# pin D14: TIM4 CH3 (AF2)
timer D15 AF2
# pin D15: TIM4 CH4 (AF2)
timer A06 AF2
# pin A06: TIM3 CH1 (AF2)
timer A07 AF2
# pin A07: TIM3 CH2 (AF2)
timer B00 AF2
# pin B00: TIM3 CH3 (AF2)
timer B01 AF2
# pin B01: TIM3 CH4 (AF2)
# dma
dma ADC 1 8
# ADC 1: DMA2 Stream 0 Request 9
dma ADC 2 NONE
dma ADC 3 9
# ADC 3: DMA2 Stream 1 Request 115
dma TIMUP 1 0
# TIMUP 1: DMA1 Stream 0 Request 15
dma TIMUP 2 0
# TIMUP 2: DMA1 Stream 0 Request 22
dma TIMUP 3 0
# TIMUP 3: DMA1 Stream 0 Request 27
dma TIMUP 4 0
# TIMUP 4: DMA1 Stream 0 Request 32
dma TIMUP 5 0
# TIMUP 5: DMA1 Stream 0 Request 59
dma TIMUP 8 2
# TIMUP 8: DMA1 Stream 2 Request 51
dma TIMUP 15 0
# TIMUP 15: DMA1 Stream 0 Request 106
dma pin A08 10
# pin A08: DMA2 Stream 2 Request 11
dma pin B11 11
# pin B11: DMA2 Stream 3 Request 21
dma pin E05 0
# pin E05: DMA1 Stream 0 Request 105
dma pin A00 0
# pin A00: DMA1 Stream 0 Request 55
dma pin A01 1
# pin A01: DMA1 Stream 1 Request 56
dma pin A02 2
# pin A02: DMA1 Stream 2 Request 57
dma pin A03 3
# pin A03: DMA1 Stream 3 Request 58
dma pin B06 4
# pin B06: DMA1 Stream 4 Request 29
dma pin B07 5
# pin B07: DMA1 Stream 5 Request 30
dma pin C06 6
# pin C06: DMA1 Stream 6 Request 47
dma pin C07 7
# pin C07: DMA1 Stream 7 Request 48
dma pin D14 12
# pin D14: DMA2 Stream 4 Request 31
dma pin D15 NONE
dma pin A06 0
# pin A06: DMA1 Stream 0 Request 23
dma pin A07 0
# pin A07: DMA1 Stream 0 Request 24
dma pin B00 0
# pin B00: DMA1 Stream 0 Request 25
dma pin B01 0
# pin B01: DMA1 Stream 0 Request 26
# master
set gyro_to_use = FIRST
set mag_bustype = I2C
set mag_i2c_device = 1
set mag_i2c_address = 0
set mag_spi_device = 0
set baro_bustype = I2C
set baro_spi_device = 0
set baro_i2c_device = 1
set baro_i2c_address = 0
set adc_device = 1
set blackbox_device = SDCARD
set dshot_burst = OFF
set current_meter = ADC
set battery_meter = ADC
set ibata_scale = 225
set beeper_inversion = ON
set beeper_od = OFF
set sdcard_detect_inverted = ON
set sdcard_mode = SDIO
set sdio_clk_bypass = OFF
set sdio_use_cache = OFF
set sdio_use_4bit_width = ON
set vtx_spi_bus = 0
set max7456_spi_bus = 4
set dashboard_i2c_bus = 1
set gyro_1_bustype = SPI
set gyro_1_spibus = 3
set gyro_1_sensor_align = CW180
set gyro_1_align_yaw = 1800
set gyro_2_bustype = SPI
set gyro_2_spibus = 2
set gyro_2_sensor_align = CUSTOM
set gyro_2_align_roll = 0
set gyro_2_align_pitch = 0
set gyro_2_align_yaw = 2250