mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 11:29:58 +03:00
Config handling updated to using repository for hydration (#12714)
* Modification to allow src/config to be a repo within a repo. * Moving config files to own repository, and including using make. * Removing all old config files. * Correct CI errors. * Playing with pulling the configuration files from the API * Attempt to get past github actions issue * Adding additional assistance when configs not hydrated * Move the workflow to support hydration before outputing target list. * Correction for revision targets * Requires additional config hydration * Better messaging on what to do: - when you have a local config.h for a new target, ignore hydration of target list if you are building the target config in question. - when you are doing any activity that does not require hydration, e.g. printing out help or installing arm_sdk etc. * Anything suffixed with clean should be allowed through * Adjusting to simply use a copy of the repository. Noting we will need to decide whether or not to include MFTR name in the config directory or not.
This commit is contained in:
parent
4dc04d6a33
commit
6e05967840
376 changed files with 128 additions and 41085 deletions
15
.github/workflows/ci.yml
vendored
15
.github/workflows/ci.yml
vendored
|
@ -21,9 +21,6 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Get all official build targets
|
||||
id: get-targets
|
||||
run: echo "targets=$(make targets-ci-print | jq -R -c 'split(" ")')" >> $GITHUB_OUTPUT
|
||||
- name: Cache build toolchain
|
||||
uses: actions/cache@v3
|
||||
id: cache-toolchain
|
||||
|
@ -35,6 +32,14 @@ jobs:
|
|||
if: steps.cache-toolchain.outputs.cache-hit != 'true'
|
||||
run: make arm_sdk_install
|
||||
|
||||
- name: Hydrate configuration
|
||||
id: get-config
|
||||
run: make configs
|
||||
|
||||
- name: Get all official build targets
|
||||
id: get-targets
|
||||
run: echo "targets=$(make targets-ci-print | jq -R -c 'split(" ")')" >> $GITHUB_OUTPUT
|
||||
|
||||
build:
|
||||
name: Build
|
||||
needs: setup
|
||||
|
@ -53,6 +58,10 @@ jobs:
|
|||
path: tools
|
||||
key: ${{ runner.os }}-${{ hashFiles('make/tools.mk') }}
|
||||
|
||||
- name: Hydrate configuration
|
||||
id: get-config
|
||||
run: make configs
|
||||
|
||||
- name: Build target (without revision)
|
||||
if: inputs.release_build == true
|
||||
run: make EXTRA_FLAGS=-Werror ${{ matrix.target }}
|
||||
|
|
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -56,5 +56,6 @@ ubuntu*.log
|
|||
# EEPROM image file (created by SITL)
|
||||
eeprom.bin
|
||||
|
||||
# board scratch space used for automated build API, and developers
|
||||
/src/main/board
|
||||
# config used for building targets
|
||||
/src/config
|
||||
|
||||
|
|
94
Makefile
94
Makefile
|
@ -75,15 +75,24 @@ include $(ROOT)/make/build_verbosity.mk
|
|||
include $(ROOT)/make/system-id.mk
|
||||
|
||||
# developer preferences, edit these at will, they'll be gitignored
|
||||
-include $(ROOT)/make/local.mk
|
||||
ifneq ($(wildcard $(ROOT)/make/local.mk),)
|
||||
include $(ROOT)/make/local.mk
|
||||
endif
|
||||
|
||||
# pre-build sanity checks
|
||||
include $(ROOT)/make/checks.mk
|
||||
|
||||
# basic target list
|
||||
BASE_TARGETS := $(sort $(notdir $(patsubst %/,%,$(dir $(wildcard $(ROOT)/src/main/target/*/target.mk)))))
|
||||
|
||||
# configure some directories that are relative to wherever ROOT_DIR is located
|
||||
TOOLS_DIR ?= $(ROOT)/tools
|
||||
DL_DIR := $(ROOT)/downloads
|
||||
CONFIG_DIR ?= $(ROOT)/src/config
|
||||
CONFIG_DIR ?= $(BETAFLIGHT_CONFIG)
|
||||
ifeq ($(CONFIG_DIR),)
|
||||
CONFIG_DIR := $(ROOT)/src/config
|
||||
endif
|
||||
DIRECTORIES := $(DL_DIR) $(TOOLS_DIR)
|
||||
|
||||
export RM := rm
|
||||
|
||||
|
@ -99,46 +108,25 @@ FATFS_DIR = $(ROOT)/lib/main/FatFS
|
|||
FATFS_SRC = $(notdir $(wildcard $(FATFS_DIR)/*.c))
|
||||
CSOURCES := $(shell find $(SRC_DIR) -name '*.c')
|
||||
|
||||
ifneq ($(CONFIG),)
|
||||
FC_VER_MAJOR := $(shell grep " FC_VERSION_MAJOR" src/main/build/version.h | awk '{print $$3}' )
|
||||
FC_VER_MINOR := $(shell grep " FC_VERSION_MINOR" src/main/build/version.h | awk '{print $$3}' )
|
||||
FC_VER_PATCH := $(shell grep " FC_VERSION_PATCH" src/main/build/version.h | awk '{print $$3}' )
|
||||
|
||||
ifneq ($(TARGET),)
|
||||
$(error TARGET or CONFIG should be specified. Not both.)
|
||||
endif
|
||||
FC_VER := $(FC_VER_MAJOR).$(FC_VER_MINOR).$(FC_VER_PATCH)
|
||||
|
||||
INCLUDE_DIRS += $(CONFIG_DIR)/$(CONFIG)
|
||||
CONFIG_FILE := $(CONFIG_DIR)/$(CONFIG)/config.h
|
||||
# import config handling
|
||||
include $(ROOT)/make/config.mk
|
||||
|
||||
ifeq ($(wildcard $(CONFIG_FILE)),)
|
||||
$(error Config file not found: $(CONFIG_FILE))
|
||||
endif
|
||||
|
||||
TARGET := $(shell grep " FC_TARGET_MCU" $(CONFIG_FILE) | awk '{print $$3}' )
|
||||
HSE_VALUE_MHZ := $(shell grep " SYSTEM_HSE_MHZ" $(CONFIG_FILE) | awk '{print $$3}' )
|
||||
ifneq ($(HSE_VALUE_MHZ),)
|
||||
HSE_VALUE := $(shell echo $$(( $(HSE_VALUE_MHZ) * 1000000 )) )
|
||||
endif
|
||||
|
||||
ifeq ($(TARGET),)
|
||||
$(error No TARGET identified. Is the config.h valid for $(CONFIG)?)
|
||||
endif
|
||||
|
||||
EXST_ADJUST_VMA := $(shell grep " FC_VMA_ADDRESS" $(CONFIG_FILE) | awk '{print $$3}' )
|
||||
ifneq ($(EXST_ADJUST_VMA),)
|
||||
EXST = yes
|
||||
endif
|
||||
|
||||
else
|
||||
ifeq ($(CONFIG),)
|
||||
ifeq ($(TARGET),)
|
||||
TARGET := $(DEFAULT_TARGET)
|
||||
endif
|
||||
endif #CONFIG
|
||||
endif
|
||||
|
||||
# default xtal value
|
||||
HSE_VALUE ?= 8000000
|
||||
|
||||
BASE_CONFIGS = $(sort $(notdir $(patsubst %/,%,$(dir $(wildcard $(ROOT)/src/config/*/config.h)))))
|
||||
BASE_TARGETS = $(sort $(notdir $(patsubst %/,%,$(dir $(wildcard $(ROOT)/src/main/target/*/target.mk)))))
|
||||
CI_TARGETS := $(BASE_TARGETS) CRAZYBEEF4SX1280 CRAZYBEEF4FR IFLIGHT_BLITZ_F722
|
||||
CI_TARGETS := $(BASE_TARGETS) $(filter CRAZYBEEF4SX1280 CRAZYBEEF4FR IFLIGHT_BLITZ_F722, $(BASE_CONFIGS))
|
||||
include $(ROOT)/src/main/target/$(TARGET)/target.mk
|
||||
|
||||
REVISION := norevision
|
||||
|
@ -146,12 +134,6 @@ ifeq ($(shell git diff --shortstat),)
|
|||
REVISION := $(shell git log -1 --format="%h")
|
||||
endif
|
||||
|
||||
FC_VER_MAJOR := $(shell grep " FC_VERSION_MAJOR" src/main/build/version.h | awk '{print $$3}' )
|
||||
FC_VER_MINOR := $(shell grep " FC_VERSION_MINOR" src/main/build/version.h | awk '{print $$3}' )
|
||||
FC_VER_PATCH := $(shell grep " FC_VERSION_PATCH" src/main/build/version.h | awk '{print $$3}' )
|
||||
|
||||
FC_VER := $(FC_VER_MAJOR).$(FC_VER_MINOR).$(FC_VER_PATCH)
|
||||
|
||||
LD_FLAGS :=
|
||||
EXTRA_LD_FLAGS :=
|
||||
|
||||
|
@ -284,6 +266,7 @@ CFLAGS += $(ARCH_FLAGS) \
|
|||
-D'__FORKNAME__="$(FORKNAME)"' \
|
||||
-D'__TARGET__="$(TARGET)"' \
|
||||
-D'__REVISION__="$(REVISION)"' \
|
||||
$(CONFIG_REVISION_DEFINE) \
|
||||
-pipe \
|
||||
-MMD -MP \
|
||||
$(EXTRA_FLAGS)
|
||||
|
@ -484,18 +467,11 @@ $(TARGET_OBJ_DIR)/%.o: %.S
|
|||
all: $(CI_TARGETS)
|
||||
|
||||
$(BASE_TARGETS):
|
||||
$(V0) @echo "Building $@" && \
|
||||
$(V0) @echo "Building target $@" && \
|
||||
$(MAKE) hex TARGET=$@ && \
|
||||
echo "Building $@ succeeded."
|
||||
|
||||
$(BASE_CONFIGS):
|
||||
$(V0) @echo "Building config $@" && \
|
||||
$(MAKE) hex CONFIG=$@ && \
|
||||
echo "Building config $@ succeeded."
|
||||
|
||||
|
||||
TARGETS_CLEAN = $(addsuffix _clean,$(BASE_TARGETS))
|
||||
CONFIGS_CLEAN = $(addsuffix _clean,$(BASE_CONFIGS))
|
||||
|
||||
## clean : clean up temporary / machine-generated files
|
||||
clean:
|
||||
|
@ -515,10 +491,6 @@ test_clean:
|
|||
$(TARGETS_CLEAN):
|
||||
$(V0) $(MAKE) -j TARGET=$(subst _clean,,$@) clean
|
||||
|
||||
## <CONFIG>_clean : clean up one specific config (alias for above)
|
||||
$(CONFIGS_CLEAN):
|
||||
$(V0) $(MAKE) -j CONFIG=$(subst _clean,,$@) clean
|
||||
|
||||
## clean_all : clean all targets
|
||||
clean_all: $(TARGETS_CLEAN) test_clean
|
||||
|
||||
|
@ -581,11 +553,6 @@ TARGETS_REVISION = $(addsuffix _rev,$(BASE_TARGETS))
|
|||
$(TARGETS_REVISION):
|
||||
$(V0) $(MAKE) hex REV=yes TARGET=$(subst _rev,,$@)
|
||||
|
||||
CONFIGS_REVISION = $(addsuffix _rev,$(BASE_CONFIGS))
|
||||
## <CONFIG>_rev : build configured target and add revision to filename
|
||||
$(CONFIGS_REVISION):
|
||||
$(V0) $(MAKE) hex REV=yes CONFIG=$(subst _rev,,$@)
|
||||
|
||||
all_rev: $(addsuffix _rev,$(CI_TARGETS))
|
||||
|
||||
unbrick_$(TARGET): $(TARGET_HEX)
|
||||
|
@ -603,10 +570,7 @@ cppcheck-result.xml: $(CSOURCES)
|
|||
$(V0) $(CPPCHECK) --xml-version=2 2> cppcheck-result.xml
|
||||
|
||||
# mkdirs
|
||||
$(DL_DIR):
|
||||
mkdir -p $@
|
||||
|
||||
$(TOOLS_DIR):
|
||||
$(DIRECTORIES):
|
||||
mkdir -p $@
|
||||
|
||||
## version : print firmware version
|
||||
|
@ -619,9 +583,14 @@ help: Makefile make/tools.mk
|
|||
@echo "Makefile for the $(FORKNAME) firmware"
|
||||
@echo ""
|
||||
@echo "Usage:"
|
||||
@echo " make [V=<verbosity>] [TARGET=<target>] [OPTIONS=\"<options>\"]"
|
||||
@echo " make [V=<verbosity>] [TARGET=<target>] [OPTIONS=\"<options>\"] [EXTRA_FLAGS=\"<extra_flags>\"]"
|
||||
@echo "Or:"
|
||||
@echo " make <target> [V=<verbosity>] [OPTIONS=\"<options>\"]"
|
||||
@echo " make <target> [V=<verbosity>] [OPTIONS=\"<options>\"] [EXTRA_FLAGS=\"<extra_flags>\"]"
|
||||
@echo "Or:"
|
||||
@echo " make <config-target> [V=<verbosity>] [OPTIONS=\"<options>\"] [EXTRA_FLAGS=\"<extra_flags>\"]"
|
||||
@echo ""
|
||||
@echo "To pupulate configuration targets:"
|
||||
@echo " make configs"
|
||||
@echo ""
|
||||
@echo "Valid TARGET values are: $(BASE_TARGETS)"
|
||||
@echo ""
|
||||
|
@ -633,9 +602,6 @@ targets:
|
|||
@echo "Built targets: $(CI_TARGETS)"
|
||||
@echo "Default target: $(TARGET)"
|
||||
|
||||
configs:
|
||||
@echo "Valid configs: $(BASE_CONFIGS)"
|
||||
|
||||
targets-ci-print:
|
||||
@echo $(CI_TARGETS)
|
||||
|
||||
|
|
67
make/config.mk
Normal file
67
make/config.mk
Normal file
|
@ -0,0 +1,67 @@
|
|||
|
||||
CONFIGS_REPO_URL ?= https://github.com/betaflight/config
|
||||
|
||||
BASE_CONFIGS = $(sort $(notdir $(patsubst %/,%,$(dir $(wildcard $(CONFIG_DIR)/configs/*/config.h)))))
|
||||
|
||||
ifneq ($(filter-out %_install test% %_clean clean% %-print %.hex %.h hex checks help configs $(BASE_TARGETS) $(BASE_CONFIGS),$(MAKECMDGOALS)),)
|
||||
ifeq ($(wildcard $(CONFIG_DIR)/configs/),)
|
||||
$(error `$(CONFIG_DIR)` not found. Have you hydrated configuration using: 'make configs'?)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq ($(CONFIG),)
|
||||
|
||||
ifneq ($(TARGET),)
|
||||
$(error TARGET or CONFIG should be specified. Not both.)
|
||||
endif
|
||||
|
||||
CONFIG_FILE = $(CONFIG_DIR)/configs/$(CONFIG)/config.h
|
||||
INCLUDE_DIRS += $(CONFIG_DIR)/configs/$(CONFIG)
|
||||
|
||||
ifneq ($(wildcard $(CONFIG_FILE)),)
|
||||
|
||||
CONFIG_REVISION := norevision
|
||||
ifeq ($(shell git -C $(CONFIG_DIR) diff --shortstat),)
|
||||
CONFIG_REVISION := $(shell git -C $(CONFIG_DIR) log -1 --format="%h")
|
||||
CONFIG_REVISION_DEFINE := -D'__CONFIG_REVISION__="$(CONFIG_REVISION)"'
|
||||
endif
|
||||
|
||||
TARGET := $(shell grep " FC_TARGET_MCU" $(CONFIG_FILE) | awk '{print $$3}' )
|
||||
HSE_VALUE_MHZ := $(shell grep " SYSTEM_HSE_MHZ" $(CONFIG_FILE) | awk '{print $$3}' )
|
||||
ifneq ($(HSE_VALUE_MHZ),)
|
||||
HSE_VALUE := $(shell echo $$(( $(HSE_VALUE_MHZ) * 1000000 )) )
|
||||
endif
|
||||
|
||||
GYRO_DEFINE := $(shell grep " USE_GYRO_" $(CONFIG_FILE) | awk '{print $$2}' )
|
||||
|
||||
ifeq ($(TARGET),)
|
||||
$(error No TARGET identified. Is the $(CONFIG_FILE) valid for $(CONFIG)?)
|
||||
endif
|
||||
|
||||
EXST_ADJUST_VMA := $(shell grep " FC_VMA_ADDRESS" $(CONFIG_FILE) | awk '{print $$3}' )
|
||||
ifneq ($(EXST_ADJUST_VMA),)
|
||||
EXST = yes
|
||||
endif
|
||||
|
||||
else #exists
|
||||
$(error `$(CONFIG_FILE)` not found. Have you hydrated configuration using: 'make configs'?)
|
||||
endif #config_file exists
|
||||
endif #config
|
||||
|
||||
.PHONY: configs
|
||||
configs:
|
||||
ifeq ($(wildcard $(CONFIG_DIR)),)
|
||||
@echo "Hydrating clone for configs: $(CONFIG_DIR)"
|
||||
$(V0) git clone $(CONFIGS_REPO_URL) $(CONFIG_DIR)
|
||||
else
|
||||
$(V0) git -C $(CONFIG_DIR) pull origin
|
||||
endif
|
||||
|
||||
$(BASE_CONFIGS):
|
||||
@echo "Building target config $@"
|
||||
$(V0) $(MAKE) -j hex CONFIG=$@
|
||||
@echo "Building target config $@ succeeded."
|
||||
|
||||
## <CONFIG>_rev : build configured target and add revision to filename
|
||||
$(addsuffix _rev,$(BASE_CONFIGS)):
|
||||
$(V0) $(MAKE) -j hex CONFIG=$(subst _rev,,$@) REV=yes
|
|
@ -208,9 +208,8 @@ COMMON_SRC += \
|
|||
drivers/vtx_rtc6705.c \
|
||||
drivers/vtx_rtc6705_soft_spi.c
|
||||
|
||||
ifneq ($(CONFIG),)
|
||||
ifneq ($(GYRO_DEFINE),)
|
||||
|
||||
GYRO_DEFINE := $(shell grep " USE_GYRO_" $(CONFIG_FILE) | awk '{print $$2}' )
|
||||
LEGACY_GYRO_DEFINES := USE_GYRO_L3GD20
|
||||
ifneq ($(findstring $(GYRO_DEFINE),$(LEGACY_GYRO_DEFINES)),)
|
||||
|
||||
|
|
|
@ -48,7 +48,6 @@ SDK_INSTALL_MARKER := $(ARM_SDK_DIR)/bin/arm-none-eabi-gcc-$(GCC_REQUIRED_VERSIO
|
|||
|
||||
# order-only prereq on directory existance:
|
||||
arm_sdk_install: | $(TOOLS_DIR)
|
||||
|
||||
arm_sdk_install: arm_sdk_download $(SDK_INSTALL_MARKER)
|
||||
|
||||
$(SDK_INSTALL_MARKER):
|
||||
|
@ -63,9 +62,8 @@ endif
|
|||
arm_sdk_download: | $(DL_DIR)
|
||||
arm_sdk_download: $(DL_DIR)/$(ARM_SDK_FILE)
|
||||
$(DL_DIR)/$(ARM_SDK_FILE):
|
||||
# download the source only if it's newer than what we already have
|
||||
$(V1) curl -L -k -o "$(DL_DIR)/$(ARM_SDK_FILE)" -z "$(DL_DIR)/$(ARM_SDK_FILE)" "$(ARM_SDK_URL)"
|
||||
|
||||
# download the source only if it's newer than what we already have
|
||||
$(V1) curl -L -k -o "$@" $(if $(wildcard $@), -z "$@",) "$(ARM_SDK_URL)"
|
||||
|
||||
## arm_sdk_clean : Uninstall Arm SDK
|
||||
.PHONY: arm_sdk_clean
|
||||
|
@ -262,7 +260,7 @@ zip_clean:
|
|||
|
||||
ifeq ($(shell [ -d "$(ARM_SDK_DIR)" ] && echo "exists"), exists)
|
||||
ARM_SDK_PREFIX := $(ARM_SDK_DIR)/bin/arm-none-eabi-
|
||||
else ifeq (,$(filter %_install test% clean% %-print checks help, $(MAKECMDGOALS)))
|
||||
else ifeq (,$(filter %_install test% clean% %-print checks help configs, $(MAKECMDGOALS)))
|
||||
GCC_VERSION = $(shell arm-none-eabi-gcc -dumpversion)
|
||||
ifeq ($(GCC_VERSION),)
|
||||
$(error **ERROR** arm-none-eabi-gcc not in the PATH. Run 'make arm_sdk_install' to install automatically in the tools folder of this repo)
|
||||
|
|
|
@ -1,121 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F405
|
||||
|
||||
#define BOARD_NAME AG3XF4
|
||||
#define MANUFACTURER_ID AIRB
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_BARO_BMP280
|
||||
#define USE_MAX7456
|
||||
|
||||
#define MOTOR1_PIN PC8
|
||||
#define MOTOR2_PIN PB0
|
||||
#define MOTOR3_PIN PB1
|
||||
#define MOTOR4_PIN PB7
|
||||
#define MOTOR5_PIN PB8
|
||||
#define MOTOR6_PIN PC9
|
||||
#define MOTOR7_PIN PB14
|
||||
#define MOTOR8_PIN PB15
|
||||
#define RX_PPM_PIN PA8
|
||||
#define LED_STRIP_PIN PA2
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART3_TX_PIN PC10
|
||||
#define UART5_TX_PIN PC12
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART3_RX_PIN PC11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART5_RX_PIN PD2
|
||||
#define UART6_RX_PIN PC7
|
||||
#define I2C2_SCL_PIN PB10
|
||||
#define I2C2_SDA_PIN PB11
|
||||
#define LED0_PIN PC13
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PC2
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PC3
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define ESCSERIAL_PIN PA8
|
||||
#define CAMERA_CONTROL_PIN PA3
|
||||
#define ADC_VBAT_PIN PC0
|
||||
#define ADC_RSSI_PIN PC4
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define ADC_EXTERNAL1_PIN PA0
|
||||
#define BARO_CS_PIN PB9
|
||||
#define FLASH_CS_PIN PB12
|
||||
#define MAX7456_SPI_CS_PIN PA15
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
#define GYRO_2_CS_PIN PC15
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 1, PC8 , 2, 0) \
|
||||
TIMER_PIN_MAP( 2, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 3, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 4, PB7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 5, PB8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 6, PC9 , 2, 0) \
|
||||
TIMER_PIN_MAP( 7, PB14, 3, -1) \
|
||||
TIMER_PIN_MAP( 8, PB15, 3, -1) \
|
||||
TIMER_PIN_MAP( 9, PA9 , 1, 1) \
|
||||
TIMER_PIN_MAP(10, PA10, 1, 0) \
|
||||
TIMER_PIN_MAP(11, PA2 , 2, 0) \
|
||||
TIMER_PIN_MAP(12, PA3 , 3, -1) \
|
||||
TIMER_PIN_MAP(13, PB10, 1, 0) \
|
||||
TIMER_PIN_MAP(14, PB11, 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define MAG_I2C_INSTANCE (I2CDEV_2)
|
||||
#define USE_BARO
|
||||
#define BARO_SPI_INSTANCE SPI2
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ESC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define BEEPER_INVERTED
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
#define MAX7456_SPI_INSTANCE SPI3
|
||||
#define DASHBOARD_I2C_INSTANCE (I2CDEV_2)
|
||||
#define FLASH_SPI_INSTANCE SPI2
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW270_DEG_FLIP
|
||||
#define GYRO_1_ALIGN_PITCH 1800
|
||||
#define GYRO_1_ALIGN_YAW 2700
|
||||
#define GYRO_2_SPI_INSTANCE SPI1
|
||||
#define GYRO_2_ALIGN CW0_DEG_FLIP
|
||||
#define GYRO_2_ALIGN_PITCH 1800
|
|
@ -1,122 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F7X2
|
||||
|
||||
#define BOARD_NAME AG3XF7
|
||||
#define MANUFACTURER_ID AIRB
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_BARO_BMP280
|
||||
#define USE_MAX7456
|
||||
|
||||
#define MOTOR1_PIN PC8
|
||||
#define MOTOR2_PIN PB0
|
||||
#define MOTOR3_PIN PB1
|
||||
#define MOTOR4_PIN PB7
|
||||
#define MOTOR5_PIN PB8
|
||||
#define MOTOR6_PIN PC9
|
||||
#define MOTOR7_PIN PB14
|
||||
#define MOTOR8_PIN PB15
|
||||
#define RX_PPM_PIN PA8
|
||||
#define LED_STRIP_PIN PA2
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART3_TX_PIN PC10
|
||||
#define UART5_TX_PIN PC12
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART3_RX_PIN PC11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART5_RX_PIN PD2
|
||||
#define UART6_RX_PIN PC7
|
||||
#define I2C2_SCL_PIN PB10
|
||||
#define I2C2_SDA_PIN PB11
|
||||
#define LED0_PIN PC13
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PC2
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PC3
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define CAMERA_CONTROL_PIN PA3
|
||||
#define ADC_VBAT_PIN PC0
|
||||
#define ADC_RSSI_PIN PC4
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define ADC_EXTERNAL1_PIN PA0
|
||||
#define BARO_CS_PIN PB9
|
||||
#define FLASH_CS_PIN PB12
|
||||
#define MAX7456_SPI_CS_PIN PA15
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
#define GYRO_2_CS_PIN PC15
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 1, PC8 , 2, 0) \
|
||||
TIMER_PIN_MAP( 2, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 3, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 4, PB7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 5, PB8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 6, PC9 , 2, 0) \
|
||||
TIMER_PIN_MAP( 7, PB14, 3, -1) \
|
||||
TIMER_PIN_MAP( 8, PB15, 3, -1) \
|
||||
TIMER_PIN_MAP( 9, PA9 , 1, 1) \
|
||||
TIMER_PIN_MAP(10, PA10, 1, 0) \
|
||||
TIMER_PIN_MAP(11, PA2 , 2, 0) \
|
||||
TIMER_PIN_MAP(12, PA3 , 3, -1) \
|
||||
TIMER_PIN_MAP(13, PB10, 1, 0) \
|
||||
TIMER_PIN_MAP(14, PB11, 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define MAG_I2C_INSTANCE (I2CDEV_2)
|
||||
#define USE_BARO
|
||||
#define BARO_SPI_INSTANCE SPI2
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
//TODO #define MIN_THROTTLE 1070
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
//TODO #define USE_UNSYNCED_PWM OFF
|
||||
//TODO #define MOTOR_PWM_PROTOCOL ONESHOT125
|
||||
//TODO #define MOTOR_PWM_RATE 480
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ESC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define BEEPER_INVERTED
|
||||
#define MAX7456_SPI_INSTANCE SPI3
|
||||
#define FLASH_SPI_INSTANCE SPI2
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW270_DEG_FLIP
|
||||
#define GYRO_1_ALIGN_PITCH 1800
|
||||
#define GYRO_1_ALIGN_YAW 2700
|
||||
#define GYRO_2_SPI_INSTANCE SPI1
|
||||
#define GYRO_2_ALIGN CW0_DEG_FLIP
|
||||
#define GYRO_2_ALIGN_PITCH 1800
|
|
@ -1,114 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F405
|
||||
|
||||
#define BOARD_NAME AIKONF4
|
||||
#define MANUFACTURER_ID AIKO
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_ACC_SPI_ICM20602
|
||||
#define USE_GYRO_SPI_ICM20602
|
||||
#define USE_ACCGYRO_BMI270
|
||||
#define USE_BARO_BMP280
|
||||
#define USE_BARO_DPS310
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_M25P16
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PB5
|
||||
#define MOTOR1_PIN PC6
|
||||
#define MOTOR2_PIN PC7
|
||||
#define MOTOR3_PIN PC8
|
||||
#define MOTOR4_PIN PC9
|
||||
#define MOTOR5_PIN PB0
|
||||
#define MOTOR6_PIN PB1
|
||||
#define RX_PPM_PIN PB6
|
||||
#define LED_STRIP_PIN PB6
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PB10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART3_RX_PIN PB11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define INVERTER_PIN_UART1 PC0
|
||||
#define I2C1_SCL_PIN PB8
|
||||
#define I2C1_SDA_PIN PB9
|
||||
#define LED0_PIN PB4
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PC10
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PC11
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PC12
|
||||
#define ESCSERIAL_PIN PB6
|
||||
#define CAMERA_CONTROL_PIN PB3
|
||||
#define ADC_VBAT_PIN PC2
|
||||
#define ADC_RSSI_PIN PC3
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define FLASH_CS_PIN PB12
|
||||
#define MAX7456_SPI_CS_PIN PA15
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
#define USB_DETECT_PIN PD2
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PB3 , 1, 0) \
|
||||
TIMER_PIN_MAP( 1, PC6 , 2, 0) \
|
||||
TIMER_PIN_MAP( 2, PC7 , 2, 0) \
|
||||
TIMER_PIN_MAP( 3, PC8 , 2, 0) \
|
||||
TIMER_PIN_MAP( 4, PC9 , 2, 0) \
|
||||
TIMER_PIN_MAP( 5, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 6, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 7, PA9 , 1, 0) \
|
||||
TIMER_PIN_MAP( 8, PA2 , 3, -1) \
|
||||
TIMER_PIN_MAP( 9, PA3 , 3, -1) \
|
||||
TIMER_PIN_MAP(10, PA0 , 2, 0) \
|
||||
TIMER_PIN_MAP(11, PA1 , 2, 0) \
|
||||
TIMER_PIN_MAP(12, PB6 , 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_1)
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define BEEPER_INVERTED
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
#define MAX7456_SPI_INSTANCE SPI3
|
||||
#define DASHBOARD_I2C_INSTANCE (I2CDEV_1)
|
||||
#define FLASH_SPI_INSTANCE SPI2
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
|
@ -1,118 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F7X2
|
||||
|
||||
#define BOARD_NAME AIKONF7
|
||||
#define MANUFACTURER_ID AIKO
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_ACCGYRO_BMI270
|
||||
#define USE_ACC_SPI_ICM42688P
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_GYRO_SPI_ICM42688P
|
||||
#define USE_BARO
|
||||
#define USE_BARO_SPI_BMP280
|
||||
#define USE_BARO_SPI_DPS310
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_M25P16
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PC15
|
||||
#define MOTOR1_PIN PC6
|
||||
#define MOTOR2_PIN PC7
|
||||
#define MOTOR3_PIN PC8
|
||||
#define MOTOR4_PIN PC9
|
||||
#define MOTOR5_PIN PB6
|
||||
#define MOTOR6_PIN PB8
|
||||
#define MOTOR7_PIN PB7
|
||||
#define MOTOR8_PIN PB1
|
||||
#define RX_PPM_PIN PB9
|
||||
#define LED_STRIP_PIN PA15
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PC10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART5_TX_PIN PC12
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART3_RX_PIN PC11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART5_RX_PIN PD2
|
||||
#define I2C2_SCL_PIN PB10
|
||||
#define I2C2_SDA_PIN PB11
|
||||
#define LED0_PIN PC13
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PC2
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define CAMERA_CONTROL_PIN PB14
|
||||
#define ADC_VBAT_PIN PC0
|
||||
#define ADC_RSSI_PIN PC3
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define BARO_CS_PIN PB2
|
||||
#define FLASH_CS_PIN PB0
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
#define PINIO1_PIN PC14
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PC6 , 2, 1) \
|
||||
TIMER_PIN_MAP( 1, PC7 , 2, 1) \
|
||||
TIMER_PIN_MAP( 2, PC8 , 2, 1) \
|
||||
TIMER_PIN_MAP( 3, PC9 , 2, 0) \
|
||||
TIMER_PIN_MAP( 4, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 5, PB8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 6, PB7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 7, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 8, PB9 , 2, -1) \
|
||||
TIMER_PIN_MAP( 9, PA15, 1, 0) \
|
||||
TIMER_PIN_MAP(10, PB14, 3, -1)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 0
|
||||
|
||||
#define BARO_SPI_INSTANCE SPI3
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define BEEPER_INVERTED
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define FLASH_SPI_INSTANCE SPI3
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW0_DEG
|
||||
#define PINIO1_BOX 40
|
||||
#define PINIO2_BOX 0
|
||||
#define PINIO3_BOX 0
|
||||
#define PINIO4_BOX 0
|
|
@ -1,114 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F405
|
||||
|
||||
#define BOARD_NAME AIRBOTF4
|
||||
#define MANUFACTURER_ID AIRB
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_BARO_SPI_BMP280
|
||||
#define USE_MAX7456
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_M25P16
|
||||
#define USE_BARO_BMP280
|
||||
#define USE_BARO_BMP280
|
||||
#define USE_BARO_BMP085
|
||||
#define USE_BARO_MS5611
|
||||
|
||||
#define BEEPER_PIN PB4
|
||||
#define MOTOR1_PIN PB0
|
||||
#define MOTOR2_PIN PB1
|
||||
#define MOTOR3_PIN PA3
|
||||
#define MOTOR4_PIN PA2
|
||||
#define MOTOR5_PIN PA1
|
||||
#define MOTOR6_PIN PA8
|
||||
#define RX_PPM_PIN PB14
|
||||
#define RX_PWM1_PIN PB14
|
||||
#define RX_PWM2_PIN PB15
|
||||
#define RX_PWM3_PIN PC6
|
||||
#define RX_PWM4_PIN PC7
|
||||
#define RX_PWM5_PIN PC8
|
||||
#define RX_PWM6_PIN PC9
|
||||
#define LED_STRIP_PIN PB6
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART3_TX_PIN PB10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART3_RX_PIN PB11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART6_RX_PIN PC7
|
||||
#define INVERTER_PIN_UART1 PC0
|
||||
#define LED0_PIN PB5
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI3_SCK_PIN PC10
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI3_SDI_PIN PC11
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI3_SDO_PIN PC12
|
||||
#define ESCSERIAL_PIN PB14
|
||||
#define ADC_VBAT_PIN PC2
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define BARO_CS_PIN PC13
|
||||
#define PINIO1_PIN PC8
|
||||
#define FLASH_CS_PIN PB3
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
#define USB_DETECT_PIN PC5
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PB14, 3, -1) \
|
||||
TIMER_PIN_MAP( 1, PB15, 3, -1) \
|
||||
TIMER_PIN_MAP( 2, PC6 , 2, 0) \
|
||||
TIMER_PIN_MAP( 3, PC7 , 2, 0) \
|
||||
TIMER_PIN_MAP( 4, PC8 , 2, 0) \
|
||||
TIMER_PIN_MAP( 5, PC9 , 2, 0) \
|
||||
TIMER_PIN_MAP( 6, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 7, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 8, PA3 , 1, 1) \
|
||||
TIMER_PIN_MAP( 9, PA2 , 1, 0) \
|
||||
TIMER_PIN_MAP(10, PA1 , 2, 0) \
|
||||
TIMER_PIN_MAP(11, PA8 , 1, 0) \
|
||||
TIMER_PIN_MAP(12, PB6 , 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define MAG_I2C_INSTANCE (I2CDEV_2)
|
||||
#define USE_BARO
|
||||
#define BARO_SPI_INSTANCE SPI1
|
||||
#define BEEPER_INVERTED
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
#define DASHBOARD_I2C_INSTANCE (I2CDEV_2)
|
||||
#define FLASH_SPI_INSTANCE SPI3
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW270_DEG
|
||||
#define GYRO_1_ALIGN_YAW 2700
|
|
@ -1,127 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU AT32F435M
|
||||
|
||||
#define BOARD_NAME AIRBOTF435
|
||||
#define MANUFACTURER_ID AIRB
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_ICM42688P
|
||||
|
||||
#define USE_BARO
|
||||
#define USE_BARO_DPS310
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_ICM42688P
|
||||
#define USE_SPI_GYRO
|
||||
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_M25P16
|
||||
|
||||
#define USE_MAX7456
|
||||
#define MAX7456_SPI_CS_PIN PH2
|
||||
#define MAX7456_SPI_INSTANCE SPI3
|
||||
|
||||
#define BEEPER_PIN PB10
|
||||
#define MOTOR1_PIN PC9
|
||||
#define MOTOR2_PIN PC8
|
||||
#define MOTOR3_PIN PB7
|
||||
#define MOTOR4_PIN PB6
|
||||
#define MOTOR5_PIN PB0
|
||||
#define MOTOR6_PIN PB1
|
||||
#define MOTOR7_PIN PC7
|
||||
#define MOTOR8_PIN PC6
|
||||
|
||||
#define LED_STRIP_PIN PA15
|
||||
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PC10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART5_TX_PIN PC12
|
||||
|
||||
#define UART7_TX_PIN PC0
|
||||
#define UART8_TX_PIN PC2
|
||||
|
||||
#define UART1_RX_PIN PA10
|
||||
|
||||
#define UART3_RX_PIN PC11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART5_RX_PIN PD2
|
||||
|
||||
#define UART7_RX_PIN PC1
|
||||
#define UART8_RX_PIN PC3
|
||||
|
||||
#define I2C1_SCL_PIN PB8
|
||||
#define I2C1_SDA_PIN PB9
|
||||
|
||||
#define LED0_PIN PC15
|
||||
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PB4
|
||||
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PB5
|
||||
|
||||
#define ADC_VBAT_PIN PC4
|
||||
#define ADC_CURR_PIN PA3
|
||||
|
||||
#define PINIO1_PIN PC11
|
||||
//TODO #define PINIO2_PIN PH3
|
||||
|
||||
#define FLASH_CS_PIN PC13
|
||||
#define FLASH_SPI_INSTANCE SPI3
|
||||
|
||||
#define GYRO_1_EXTI_PIN PB12
|
||||
#define GYRO_1_CS_PIN PC14
|
||||
#define GYRO_1_SPI_INSTANCE SPI2
|
||||
|
||||
#define TIMER_PIN_MAPPING TIMER_PIN_MAP( 0, LED_STRIP_PIN, 1, -1 ) \
|
||||
TIMER_PIN_MAP( 1, MOTOR4_PIN, 1, 2 ) \
|
||||
TIMER_PIN_MAP( 2, MOTOR3_PIN, 1, 4 ) \
|
||||
TIMER_PIN_MAP( 3, MOTOR2_PIN, 2, 1 ) \
|
||||
TIMER_PIN_MAP( 4, MOTOR1_PIN, 2, 3 ) \
|
||||
TIMER_PIN_MAP( 5, MOTOR5_PIN, 3, 7 ) \
|
||||
TIMER_PIN_MAP( 6, MOTOR6_PIN, 3, 8 ) \
|
||||
TIMER_PIN_MAP( 7, MOTOR8_PIN, 2, 9 ) \
|
||||
TIMER_PIN_MAP( 8, MOTOR7_PIN, 2, 10 )
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 0
|
||||
#define SPI3_TX_DMA_OPT 5
|
||||
|
||||
#define ADC_INSTANCE ADC1
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_1)
|
||||
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
|
@ -1,123 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F405
|
||||
|
||||
#define BOARD_NAME AIRBOTF4SD
|
||||
#define MANUFACTURER_ID AIRB
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_BARO_SPI_BMP280
|
||||
#define USE_MAX7456
|
||||
#define USE_SDCARD
|
||||
#define USE_BARO_BMP280
|
||||
#define USE_BARO_BMP085
|
||||
#define USE_BARO_MS5611
|
||||
#define USE_BARO_SPI_BMP280
|
||||
|
||||
#define BEEPER_PIN PB4
|
||||
#define MOTOR1_PIN PB0
|
||||
#define MOTOR2_PIN PB1
|
||||
#define MOTOR3_PIN PA3
|
||||
#define MOTOR4_PIN PA2
|
||||
#define MOTOR5_PIN PA1
|
||||
#define MOTOR6_PIN PA8
|
||||
#define RX_PPM_PIN PB14
|
||||
#define RX_PWM1_PIN PB14
|
||||
#define RX_PWM2_PIN PB15
|
||||
#define RX_PWM3_PIN PC6
|
||||
#define RX_PWM4_PIN PC7
|
||||
#define RX_PWM5_PIN PC8
|
||||
#define RX_PWM6_PIN PC9
|
||||
#define LED_STRIP_PIN PB6
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART3_TX_PIN PB10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART3_RX_PIN PB11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART6_RX_PIN PC7
|
||||
#define INVERTER_PIN_UART6 PD2
|
||||
#define LED0_PIN PB5
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI3_SCK_PIN PC10
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI3_SDI_PIN PC11
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI3_SDO_PIN PC12
|
||||
#define ESCSERIAL_PIN PB14
|
||||
#define ADC_VBAT_PIN PC2
|
||||
#define ADC_RSSI_PIN PA0
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define BARO_CS_PIN PC13
|
||||
#define SDCARD_SPI_CS_PIN PB3
|
||||
#define SDCARD_DETECT_PIN PC0
|
||||
#define PINIO1_PIN PC8
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define GYRO_1_CS_PIN PB13
|
||||
#define GYRO_2_CS_PIN PA4
|
||||
#define USB_DETECT_PIN PC5
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PB14, 3, -1) \
|
||||
TIMER_PIN_MAP( 1, PB15, 3, -1) \
|
||||
TIMER_PIN_MAP( 2, PC6 , 2, 0) \
|
||||
TIMER_PIN_MAP( 3, PC7 , 2, 0) \
|
||||
TIMER_PIN_MAP( 4, PC8 , 2, 0) \
|
||||
TIMER_PIN_MAP( 5, PC9 , 2, 0) \
|
||||
TIMER_PIN_MAP( 6, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 7, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 8, PA3 , 1, 1) \
|
||||
TIMER_PIN_MAP( 9, PA2 , 1, 0) \
|
||||
TIMER_PIN_MAP(10, PA1 , 2, 0) \
|
||||
TIMER_PIN_MAP(11, PA8 , 1, 0) \
|
||||
TIMER_PIN_MAP(12, PB6 , 1, 0)
|
||||
|
||||
|
||||
|
||||
#define SPI3_TX_DMA_OPT 0
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define MAG_I2C_INSTANCE (I2CDEV_2)
|
||||
#define USE_BARO
|
||||
#define BARO_SPI_INSTANCE SPI1
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD
|
||||
#define BEEPER_INVERTED
|
||||
#define SDCARD_DETECT_INVERTED
|
||||
#define USE_SDCARD_SPI
|
||||
#define SDCARD_SPI_INSTANCE SPI3
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
#define DASHBOARD_I2C_INSTANCE (I2CDEV_2)
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW270_DEG
|
||||
#define GYRO_1_ALIGN_YAW 2700
|
||||
#define GYRO_2_SPI_INSTANCE SPI1
|
||||
#define GYRO_2_ALIGN CW270_DEG
|
||||
#define GYRO_2_ALIGN_YAW 2700
|
|
@ -1,98 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F405
|
||||
|
||||
#define BOARD_NAME AIRBOTF4V2
|
||||
#define MANUFACTURER_ID AIRB
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_MAX7456
|
||||
#define USE_SDCARD
|
||||
|
||||
#define BEEPER_PIN PC5
|
||||
#define MOTOR1_PIN PC8
|
||||
#define MOTOR2_PIN PB6
|
||||
#define MOTOR3_PIN PC9
|
||||
#define MOTOR4_PIN PB7
|
||||
#define LED_STRIP_PIN PA15
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PC10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART5_TX_PIN PC12
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART3_RX_PIN PC11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART6_RX_PIN PC7
|
||||
#define I2C1_SCL_PIN PB8
|
||||
#define I2C1_SDA_PIN PB9
|
||||
#define LED0_PIN PB12
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define ADC_VBAT_PIN PC0
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define FLASH_CS_PIN PA3
|
||||
#define MAX7456_SPI_CS_PIN PC15
|
||||
#define GYRO_1_CS_PIN PD2
|
||||
#define GYRO_2_CS_PIN PC4
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA15, 1, 0) \
|
||||
TIMER_PIN_MAP( 1, PA8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 2, PC8 , 2, 0) \
|
||||
TIMER_PIN_MAP( 3, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 4, PC9 , 2, 0) \
|
||||
TIMER_PIN_MAP( 5, PB7 , 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 179
|
||||
#define BEEPER_INVERTED
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define DASHBOARD_I2C_INSTANCE (I2CDEV_1)
|
||||
#define FLASH_SPI_INSTANCE SPI1
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI3
|
||||
#define GYRO_1_ALIGN CW90_DEG
|
||||
#define GYRO_1_ALIGN_YAW 900
|
||||
#define GYRO_2_SPI_INSTANCE SPI1
|
|
@ -1,96 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F7X2
|
||||
|
||||
#define BOARD_NAME AIRBOTF7
|
||||
#define MANUFACTURER_ID AIRB
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PB0
|
||||
#define MOTOR1_PIN PC8
|
||||
#define MOTOR2_PIN PB6
|
||||
#define MOTOR3_PIN PC9
|
||||
#define MOTOR4_PIN PB7
|
||||
#define LED_STRIP_PIN PA15
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PC10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART5_TX_PIN PC12
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART3_RX_PIN PC11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART6_RX_PIN PC7
|
||||
#define I2C1_SCL_PIN PB8
|
||||
#define I2C1_SDA_PIN PB9
|
||||
#define LED0_PIN PB12
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define ADC_VBAT_PIN PC0
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define FLASH_CS_PIN PA3
|
||||
#define MAX7456_SPI_CS_PIN PC15
|
||||
#define GYRO_1_CS_PIN PD2
|
||||
#define GYRO_2_CS_PIN PC4
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA15, 1, 0) \
|
||||
TIMER_PIN_MAP( 1, PA8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 2, PC8 , 2, 0) \
|
||||
TIMER_PIN_MAP( 3, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 4, PC9 , 2, 0) \
|
||||
TIMER_PIN_MAP( 5, PB7 , 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 179
|
||||
#define BEEPER_INVERTED
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define FLASH_SPI_INSTANCE SPI1
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI3
|
||||
#define GYRO_1_ALIGN CW90_DEG
|
||||
#define GYRO_1_ALIGN_YAW 900
|
||||
#define GYRO_2_SPI_INSTANCE SPI1
|
|
@ -1,92 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F7X2
|
||||
|
||||
#define BOARD_NAME AIRBOTF7HDV
|
||||
#define MANUFACTURER_ID AIRB
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_M25P16
|
||||
|
||||
#define BEEPER_PIN PB2
|
||||
#define MOTOR1_PIN PC8
|
||||
#define MOTOR2_PIN PC9
|
||||
#define MOTOR3_PIN PB0
|
||||
#define MOTOR4_PIN PB1
|
||||
#define LED_STRIP_PIN PA15
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PC10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART5_TX_PIN PC12
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART3_RX_PIN PC11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART5_RX_PIN PD2
|
||||
#define UART6_RX_PIN PC7
|
||||
#define I2C1_SCL_PIN PB8
|
||||
#define I2C1_SDA_PIN PB9
|
||||
#define LED0_PIN PA3
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define ADC_VBAT_PIN PC0
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define PINIO1_PIN PC14
|
||||
#define FLASH_CS_PIN PB12
|
||||
#define GYRO_1_CS_PIN PC4
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA15, 1, 0) \
|
||||
TIMER_PIN_MAP( 1, PA8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 2, PC8 , 2, 0) \
|
||||
TIMER_PIN_MAP( 3, PC9 , 2, 0) \
|
||||
TIMER_PIN_MAP( 4, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 5, PB1 , 2, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_1)
|
||||
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 179
|
||||
#define BEEPER_INVERTED
|
||||
#define FLASH_SPI_INSTANCE SPI2
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW90_DEG
|
||||
#define GYRO_1_ALIGN_YAW 900
|
|
@ -1,101 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F7X2
|
||||
|
||||
#define BOARD_NAME AIRF7
|
||||
#define MANUFACTURER_ID RAST
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_BARO
|
||||
#define USE_BARO_BMP280
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_W25Q128FV
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PB2
|
||||
#define MOTOR1_PIN PC8
|
||||
#define MOTOR2_PIN PC9
|
||||
#define MOTOR3_PIN PB0
|
||||
#define MOTOR4_PIN PB1
|
||||
#define LED_STRIP_PIN PA15
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PC10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART5_TX_PIN PC12
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART3_RX_PIN PC11
|
||||
#define UART6_RX_PIN PC7
|
||||
#define I2C1_SCL_PIN PB8
|
||||
#define I2C1_SDA_PIN PB9
|
||||
#define LED0_PIN PA3
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define CAMERA_CONTROL_PIN PA8
|
||||
#define ADC_VBAT_PIN PC0
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define PINIO1_PIN PA10
|
||||
#define FLASH_CS_PIN PB12
|
||||
#define MAX7456_SPI_CS_PIN PD2
|
||||
#define GYRO_1_CS_PIN PC4
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA15, 1, 0) \
|
||||
TIMER_PIN_MAP( 1, PA8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 2, PC8 , 2, 0) \
|
||||
TIMER_PIN_MAP( 3, PC9 , 2, 0) \
|
||||
TIMER_PIN_MAP( 4, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 5, PB1 , 2, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_1)
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 179
|
||||
#define BEEPER_INVERTED
|
||||
#define MAX7456_SPI_INSTANCE SPI3
|
||||
#define PINIO1_BOX 40
|
||||
#define FLASH_SPI_INSTANCE SPI2
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW90_DEG
|
||||
#define GYRO_2_SPI_INSTANCE SPI1
|
||||
#define GYRO_2_ALIGN CW0_DEG
|
|
@ -1,127 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F405
|
||||
|
||||
#define BOARD_NAME ALIENFLIGHTF4
|
||||
#define MANUFACTURER_ID AFNG
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU9250
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU9250
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define USE_MAG_SPI_AK8963
|
||||
#define USE_MAX7456
|
||||
#define USE_SDCARD
|
||||
|
||||
#define BEEPER_PIN PC13
|
||||
#define MOTOR1_PIN PB8
|
||||
#define MOTOR2_PIN PB9
|
||||
#define MOTOR3_PIN PA0
|
||||
#define MOTOR4_PIN PA1
|
||||
#define MOTOR5_PIN PC6
|
||||
#define MOTOR6_PIN PC7
|
||||
#define MOTOR7_PIN PC8
|
||||
#define MOTOR8_PIN PC9
|
||||
#define RX_PPM_PIN PA8
|
||||
#define RX_PWM1_PIN PA8
|
||||
#define RX_PWM2_PIN PB0
|
||||
#define RX_PWM3_PIN PB1
|
||||
#define RX_PWM4_PIN PB14
|
||||
#define RX_PWM5_PIN PB15
|
||||
#define LED_STRIP_PIN PB15
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART4_TX_PIN PC10
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART4_RX_PIN PC11
|
||||
#define INVERTER_PIN_UART2 PC15
|
||||
#define I2C1_SCL_PIN PB6
|
||||
#define I2C1_SDA_PIN PB7
|
||||
#define LED0_PIN PC12
|
||||
#define LED1_PIN PD2
|
||||
#define SPEKTRUM_RX_BIND_PIN PB2
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PC2
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PC3
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define ESCSERIAL_PIN PA8
|
||||
#define ADC_VBAT_PIN PC0
|
||||
#define ADC_RSSI_PIN PC4
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define ADC_EXTERNAL1_PIN PC5
|
||||
#define SDCARD_SPI_CS_PIN PB10
|
||||
#define SDCARD_DETECT_PIN PB11
|
||||
#define FLASH_CS_PIN PB12
|
||||
#define GYRO_1_EXTI_PIN PC14
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA8 , 1, 1) \
|
||||
TIMER_PIN_MAP( 1, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 2, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 3, PB14, 1, 1) \
|
||||
TIMER_PIN_MAP( 4, PB15, 1, 0) \
|
||||
TIMER_PIN_MAP( 5, PB8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 6, PB9 , 1, -1) \
|
||||
TIMER_PIN_MAP( 7, PA0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 8, PA1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 9, PC6 , 2, 0) \
|
||||
TIMER_PIN_MAP(10, PC7 , 2, 0) \
|
||||
TIMER_PIN_MAP(11, PC8 , 2, 1) \
|
||||
TIMER_PIN_MAP(12, PC9 , 2, 0)
|
||||
|
||||
|
||||
|
||||
#define SPI2_TX_DMA_OPT 0
|
||||
#define ADC1_DMA_OPT 0
|
||||
|
||||
#define MAG_ALIGN CW180_DEG_FLIP
|
||||
#define MAG_ALIGN_PITCH 1800
|
||||
#define MAG_ALIGN_YAW 1800
|
||||
#define MAG_I2C_INSTANCE (I2CDEV_1)
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_1)
|
||||
//TODO #define SERIALRX_PROVIDER SPEK2048
|
||||
//TODO #define SPEKTRUM_SAT_BIND 9
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define BEEPER_INVERTED
|
||||
#define SDCARD_DETECT_INVERTED
|
||||
#define USE_SDCARD_SPI
|
||||
#define SDCARD_SPI_INSTANCE SPI2
|
||||
#define FLASH_SPI_INSTANCE SPI2
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW270_DEG
|
||||
#define GYRO_1_ALIGN_YAW 2700
|
||||
#define USE_I2C1_PULLUP ON
|
|
@ -1,130 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F7X2
|
||||
|
||||
#define BOARD_NAME ALIENFLIGHTNGF7
|
||||
#define MANUFACTURER_ID AFNG
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU9250
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU9250
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define USE_GYRO_SPI_ICM20602
|
||||
#define USE_ACC_SPI_ICM20602
|
||||
#define USE_BARO_SPI_BMP280
|
||||
#define USE_MAG_MPU925X_AK8963
|
||||
#define USE_MAG_SPI_AK8963
|
||||
#define USE_MAX7456
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_W25N01G
|
||||
#define USE_SDCARD
|
||||
|
||||
#define BEEPER_PIN PC13
|
||||
#define MOTOR1_PIN PC6
|
||||
#define MOTOR2_PIN PC7
|
||||
#define MOTOR3_PIN PB14
|
||||
#define MOTOR4_PIN PB0
|
||||
#define MOTOR5_PIN PA0
|
||||
#define MOTOR6_PIN PC8
|
||||
#define MOTOR7_PIN PA1
|
||||
#define MOTOR8_PIN PC9
|
||||
#define RX_PPM_PIN PA8
|
||||
#define LED_STRIP_PIN PA8
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART4_TX_PIN PC10
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART4_RX_PIN PC11
|
||||
#define I2C1_SCL_PIN PB6
|
||||
#define I2C1_SDA_PIN PB7
|
||||
#define LED0_PIN PC12
|
||||
#define LED1_PIN PD2
|
||||
#define SPEKTRUM_RX_BIND_PIN PB2
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PC2
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PC3
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define ADC_VBAT_PIN PC0
|
||||
#define ADC_RSSI_PIN PC4
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define BARO_CS_PIN PA15
|
||||
#define COMPASS_CS_PIN PC15
|
||||
#define SDCARD_SPI_CS_PIN PB10
|
||||
#define SDCARD_DETECT_PIN PB11
|
||||
#define FLASH_CS_PIN PB12
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define GYRO_1_EXTI_PIN PC14
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA8 , 1, 1) \
|
||||
TIMER_PIN_MAP( 1, PC6 , 2, 0) \
|
||||
TIMER_PIN_MAP( 2, PC7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 3, PB14, 2, 1) \
|
||||
TIMER_PIN_MAP( 4, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 5, PA0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 6, PC8 , 2, 1) \
|
||||
TIMER_PIN_MAP( 7, PA1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 8, PC9 , 2, 0) \
|
||||
TIMER_PIN_MAP( 9, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP(10, PB15, 1, 0) \
|
||||
TIMER_PIN_MAP(11, PB8 , 1, 0) \
|
||||
TIMER_PIN_MAP(12, PB9 , 1, -1)
|
||||
|
||||
|
||||
|
||||
#define SPI2_TX_DMA_OPT 0
|
||||
#define ADC1_DMA_OPT 0
|
||||
|
||||
#define MAG_ALIGN CW180_DEG_FLIP
|
||||
#define MAG_ALIGN_PITCH 1800
|
||||
#define MAG_ALIGN_YAW 1800
|
||||
#define USE_SPI_MAG
|
||||
#define MAG_SPI_DEVICE SPI3
|
||||
#define USE_BARO
|
||||
#define BARO_SPI_INSTANCE SPI3
|
||||
//TODO #define SERIALRX_PROVIDER SPEK2048
|
||||
//TODO #define SPEKTRUM_SAT_BIND 9
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define BEEPER_INVERTED
|
||||
#define SDCARD_DETECT_INVERTED
|
||||
#define USE_SDCARD_SPI
|
||||
#define SDCARD_SPI_INSTANCE SPI2
|
||||
#define MAX7456_SPI_INSTANCE SPI3
|
||||
#define FLASH_SPI_INSTANCE SPI2
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW270_DEG
|
||||
#define GYRO_1_ALIGN_YAW 2700
|
||||
#define USE_I2C1_PULLUP ON
|
|
@ -1,118 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F7X2
|
||||
|
||||
#define BOARD_NAME ALIENFLIGHTNGF7_DUAL
|
||||
#define MANUFACTURER_ID AFNG
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define USE_GYRO_SPI_ICM20602
|
||||
#define USE_ACC_SPI_ICM20602
|
||||
#define USE_MAX7456
|
||||
#define USE_SDCARD
|
||||
|
||||
#define BEEPER_PIN PC13
|
||||
#define MOTOR1_PIN PC6
|
||||
#define MOTOR2_PIN PC7
|
||||
#define MOTOR3_PIN PB14
|
||||
#define MOTOR4_PIN PB0
|
||||
#define MOTOR5_PIN PA0
|
||||
#define MOTOR6_PIN PC8
|
||||
#define MOTOR7_PIN PA1
|
||||
#define MOTOR8_PIN PC9
|
||||
#define RX_PPM_PIN PA8
|
||||
#define LED_STRIP_PIN PA8
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART4_TX_PIN PC10
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART4_RX_PIN PC11
|
||||
#define I2C1_SCL_PIN PB6
|
||||
#define I2C1_SDA_PIN PB7
|
||||
#define LED0_PIN PC12
|
||||
#define LED1_PIN PD2
|
||||
#define SPEKTRUM_RX_BIND_PIN PB2
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PC2
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PC3
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define ADC_VBAT_PIN PC0
|
||||
#define ADC_RSSI_PIN PC4
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define SDCARD_SPI_CS_PIN PB10
|
||||
#define SDCARD_DETECT_PIN PB11
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define GYRO_1_EXTI_PIN PC14
|
||||
#define GYRO_2_EXTI_PIN PC15
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
#define GYRO_2_CS_PIN PA15
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA8 , 1, 1) \
|
||||
TIMER_PIN_MAP( 1, PC6 , 2, 0) \
|
||||
TIMER_PIN_MAP( 2, PC7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 3, PB14, 2, 1) \
|
||||
TIMER_PIN_MAP( 4, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 5, PA0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 6, PC8 , 2, 1) \
|
||||
TIMER_PIN_MAP( 7, PA1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 8, PC9 , 2, 0) \
|
||||
TIMER_PIN_MAP( 9, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP(10, PB15, 1, 0) \
|
||||
TIMER_PIN_MAP(11, PB8 , 1, 0) \
|
||||
TIMER_PIN_MAP(12, PB9 , 1, -1)
|
||||
|
||||
|
||||
|
||||
#define SPI2_TX_DMA_OPT 0
|
||||
#define ADC1_DMA_OPT 0
|
||||
|
||||
//TODO #define SERIALRX_PROVIDER SPEK2048
|
||||
//TODO #define SPEKTRUM_SAT_BIND 9
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define BEEPER_INVERTED
|
||||
#define SDCARD_DETECT_INVERTED
|
||||
#define USE_SDCARD_SPI
|
||||
#define SDCARD_SPI_INSTANCE SPI2
|
||||
#define MAX7456_SPI_INSTANCE SPI3
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW270_DEG
|
||||
#define GYRO_1_ALIGN_YAW 2700
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_2_SPI_INSTANCE SPI3
|
||||
#define GYRO_2_ALIGN CW270_DEG
|
||||
#define GYRO_2_ALIGN_YAW 2700
|
||||
#define USE_I2C1_PULLUP ON
|
|
@ -1,128 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F7X2
|
||||
|
||||
#define BOARD_NAME ALIENFLIGHTNGF7_ELRS
|
||||
#define MANUFACTURER_ID AFNG
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU9250
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU9250
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define USE_GYRO_SPI_ICM20602
|
||||
#define USE_ACC_SPI_ICM20602
|
||||
#define USE_MAG_SPI_AK8963
|
||||
#define USE_MAX7456
|
||||
#define USE_SDCARD
|
||||
#define USE_RX_SPI
|
||||
#define USE_RX_EXPRESSLRS
|
||||
#define USE_RX_EXPRESSLRS_TELEMETRY
|
||||
#define USE_RX_SX1280
|
||||
#define RX_CHANNELS_AETR
|
||||
#define RX_SPI_DEFAULT_PROTOCOL RX_SPI_EXPRESSLRS
|
||||
#define DEFAULT_RX_FEATURE FEATURE_RX_SPI
|
||||
#define RX_SPI_PROTOCOL EXPRESSLRS
|
||||
#define RX_EXPRESSLRS_TIMER_INSTANCE TIM5
|
||||
#define RX_EXPRESSLRS_SPI_RESET_PIN PB6
|
||||
#define RX_EXPRESSLRS_SPI_BUSY_PIN PB7
|
||||
#define RX_SPI_CS PA15
|
||||
#define RX_SPI_EXTI PB15
|
||||
#define RX_SPI_BIND PB2
|
||||
#define RX_SPI_LED PB9
|
||||
|
||||
#define BEEPER_PIN PC13
|
||||
#define MOTOR1_PIN PC6
|
||||
#define MOTOR2_PIN PC7
|
||||
#define MOTOR3_PIN PB14
|
||||
#define MOTOR4_PIN PB0
|
||||
#define MOTOR5_PIN PA0
|
||||
#define MOTOR6_PIN PC8
|
||||
#define MOTOR7_PIN PA1
|
||||
#define MOTOR8_PIN PC9
|
||||
#define RX_PPM_PIN PA8
|
||||
#define LED_STRIP_PIN PA8
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART4_TX_PIN PC10
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART4_RX_PIN PC11
|
||||
#define LED0_PIN PC12
|
||||
#define LED1_PIN PD2
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PC2
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PC3
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define ADC_VBAT_PIN PC0
|
||||
#define ADC_RSSI_PIN PC4
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define SDCARD_SPI_CS_PIN PB10
|
||||
#define SDCARD_DETECT_PIN PB11
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define RX_SPI_CS_PIN PA15
|
||||
#define RX_SPI_EXTI_PIN PB15
|
||||
#define RX_SPI_BIND_PIN PB2
|
||||
#define RX_SPI_LED_PIN PB9
|
||||
#define RX_SPI_EXPRESSLRS_RESET_PIN PB6
|
||||
#define RX_SPI_EXPRESSLRS_BUSY_PIN PB7
|
||||
#define GYRO_1_EXTI_PIN PC14
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA8 , 1, 1) \
|
||||
TIMER_PIN_MAP( 1, PC6 , 2, 0) \
|
||||
TIMER_PIN_MAP( 2, PC7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 3, PB14, 2, 1) \
|
||||
TIMER_PIN_MAP( 4, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 5, PA0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 6, PC8 , 2, 1) \
|
||||
TIMER_PIN_MAP( 7, PA1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 8, PC9 , 2, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 0
|
||||
|
||||
//TODO #define RX_SPI_PROTOCOL RX_SPI_EXPRESSLRS
|
||||
#define RX_SPI_INSTANCE SPI3
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define BEEPER_INVERTED
|
||||
#define SDCARD_DETECT_INVERTED
|
||||
#define USE_SDCARD_SPI
|
||||
#define SDCARD_SPI_INSTANCE SPI2
|
||||
#define MAX7456_SPI_INSTANCE SPI3
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW270_DEG
|
||||
#define GYRO_1_ALIGN_YAW 2700
|
||||
//TODO #define EXPRESSLRS_DOMAIN ISM2400
|
|
@ -1,115 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F7X2
|
||||
|
||||
#define BOARD_NAME ALIENFLIGHTNGF7_RX
|
||||
#define MANUFACTURER_ID AFNG
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU9250
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU9250
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define USE_GYRO_SPI_ICM20602
|
||||
#define USE_ACC_SPI_ICM20602
|
||||
#define USE_MAG_SPI_AK8963
|
||||
#define USE_MAX7456
|
||||
#define USE_SDCARD
|
||||
#define USE_RX_CC2500
|
||||
|
||||
#define BEEPER_PIN PC13
|
||||
#define MOTOR1_PIN PC6
|
||||
#define MOTOR2_PIN PC7
|
||||
#define MOTOR3_PIN PB14
|
||||
#define MOTOR4_PIN PB0
|
||||
#define MOTOR5_PIN PA0
|
||||
#define MOTOR6_PIN PC8
|
||||
#define MOTOR7_PIN PA1
|
||||
#define MOTOR8_PIN PC9
|
||||
#define RX_PPM_PIN PA8
|
||||
#define LED_STRIP_PIN PA8
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART4_TX_PIN PC10
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART4_RX_PIN PC11
|
||||
#define LED0_PIN PC12
|
||||
#define LED1_PIN PD2
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PC2
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PC3
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define ADC_VBAT_PIN PC0
|
||||
#define ADC_RSSI_PIN PC4
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define SDCARD_SPI_CS_PIN PB10
|
||||
#define SDCARD_DETECT_PIN PB11
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define RX_SPI_CS_PIN PA15
|
||||
#define RX_SPI_EXTI_PIN PB15
|
||||
#define RX_SPI_BIND_PIN PB2
|
||||
#define RX_SPI_LED_PIN PB9
|
||||
#define RX_SPI_CC2500_TX_EN_PIN PB6
|
||||
#define RX_SPI_CC2500_LNA_EN_PIN PB7
|
||||
#define RX_SPI_CC2500_ANT_SEL_PIN PB8
|
||||
#define GYRO_1_EXTI_PIN PC14
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA8 , 1, 1) \
|
||||
TIMER_PIN_MAP( 1, PC6 , 2, 0) \
|
||||
TIMER_PIN_MAP( 2, PC7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 3, PB14, 2, 1) \
|
||||
TIMER_PIN_MAP( 4, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 5, PA0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 6, PC8 , 2, 1) \
|
||||
TIMER_PIN_MAP( 7, PA1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 8, PC9 , 2, 0)
|
||||
|
||||
|
||||
|
||||
#define SPI2_TX_DMA_OPT 0
|
||||
#define ADC1_DMA_OPT 0
|
||||
|
||||
//TODO #define RX_SPI_PROTOCOL FRSKY_X
|
||||
#define RX_SPI_INSTANCE SPI3
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define BEEPER_INVERTED
|
||||
#define SDCARD_DETECT_INVERTED
|
||||
#define USE_SDCARD_SPI
|
||||
#define SDCARD_SPI_INSTANCE SPI2
|
||||
#define MAX7456_SPI_INSTANCE SPI3
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW270_DEG
|
||||
#define GYRO_1_ALIGN_YAW 2700
|
|
@ -1,83 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F405
|
||||
|
||||
#define BOARD_NAME ALIENWHOOPF4
|
||||
#define MANUFACTURER_ID ALWH
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PA2
|
||||
#define MOTOR1_PIN PC9
|
||||
#define MOTOR2_PIN PC8
|
||||
#define MOTOR3_PIN PC7
|
||||
#define MOTOR4_PIN PC6
|
||||
#define LED_STRIP_PIN PA0
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PC10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART3_RX_PIN PC11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define LED0_PIN PC12
|
||||
#define LED1_PIN PD2
|
||||
#define SPEKTRUM_RX_BIND_PIN PC13
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define FLASH_CS_PIN PA15
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define GYRO_1_EXTI_PIN PC14
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PC9 , 2, 0) \
|
||||
TIMER_PIN_MAP( 1, PC8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 2, PC7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 3, PC6 , 2, 0) \
|
||||
TIMER_PIN_MAP( 4, PA0 , 2, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define BEEPER_INVERTED
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define FLASH_SPI_INSTANCE SPI3
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
|
@ -1,131 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F745
|
||||
|
||||
#define BOARD_NAME ANYFCF7
|
||||
#define MANUFACTURER_ID FOSS
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_BARO_MS5611
|
||||
#define USE_MAX7456
|
||||
#define USE_SDCARD
|
||||
|
||||
#define BEEPER_PIN PB2
|
||||
#define MOTOR1_PIN PB8
|
||||
#define MOTOR2_PIN PA2
|
||||
#define MOTOR3_PIN PA1
|
||||
#define MOTOR4_PIN PA3
|
||||
#define MOTOR5_PIN PB5
|
||||
#define MOTOR6_PIN PA0
|
||||
#define MOTOR7_PIN PB9
|
||||
#define MOTOR8_PIN PE6
|
||||
#define RX_PPM_PIN PB14
|
||||
#define RX_PWM1_PIN PB14
|
||||
#define RX_PWM2_PIN PB15
|
||||
#define RX_PWM3_PIN PC6
|
||||
#define RX_PWM4_PIN PC7
|
||||
#define RX_PWM5_PIN PC8
|
||||
#define RX_PWM6_PIN PC9
|
||||
#define LED_STRIP_PIN PB3
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PD5
|
||||
#define UART3_TX_PIN PD8
|
||||
#define UART4_TX_PIN PC10
|
||||
#define UART5_TX_PIN PC12
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART7_TX_PIN PE8
|
||||
#define UART8_TX_PIN PE1
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PD6
|
||||
#define UART3_RX_PIN PD9
|
||||
#define UART4_RX_PIN PC11
|
||||
#define UART5_RX_PIN PD2
|
||||
#define UART6_RX_PIN PC7
|
||||
#define UART7_RX_PIN PE7
|
||||
#define UART8_RX_PIN PE0
|
||||
#define I2C2_SCL_PIN PB10
|
||||
#define I2C4_SCL_PIN PD12
|
||||
#define I2C2_SDA_PIN PB11
|
||||
#define I2C4_SDA_PIN PD13
|
||||
#define LED0_PIN PB7
|
||||
#define LED1_PIN PB6
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI3_SCK_PIN PC10
|
||||
#define SPI4_SCK_PIN PE12
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI3_SDI_PIN PC11
|
||||
#define SPI4_SDI_PIN PE13
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI3_SDO_PIN PC12
|
||||
#define SPI4_SDO_PIN PE14
|
||||
#define ADC_VBAT_PIN PC0
|
||||
#define ADC_RSSI_PIN PC2
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define SDCARD_SPI_CS_PIN PE11
|
||||
#define SDCARD_DETECT_PIN PD3
|
||||
#define MAX7456_SPI_CS_PIN PD2
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
#define USB_DETECT_PIN PA8
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PB14, 3, -1) \
|
||||
TIMER_PIN_MAP( 1, PB15, 3, -1) \
|
||||
TIMER_PIN_MAP( 2, PC6 , 2, 0) \
|
||||
TIMER_PIN_MAP( 3, PC7 , 2, 1) \
|
||||
TIMER_PIN_MAP( 4, PC8 , 2, 1) \
|
||||
TIMER_PIN_MAP( 5, PC9 , 2, 0) \
|
||||
TIMER_PIN_MAP( 6, PB8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 7, PA2 , 2, 0) \
|
||||
TIMER_PIN_MAP( 8, PA1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 9, PA3 , 2, 0) \
|
||||
TIMER_PIN_MAP(10, PB5 , 1, 0) \
|
||||
TIMER_PIN_MAP(11, PA0 , 2, 0) \
|
||||
TIMER_PIN_MAP(12, PB9 , 1, -1) \
|
||||
TIMER_PIN_MAP(13, PE6 , 1, -1) \
|
||||
TIMER_PIN_MAP(14, PB3 , 1, 0) \
|
||||
TIMER_PIN_MAP(15, PB4 , 1, 0)
|
||||
|
||||
|
||||
|
||||
#define SPI4_TX_DMA_OPT 0
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define MAG_I2C_INSTANCE (I2CDEV_2)
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_2)
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD
|
||||
#define BEEPER_INVERTED
|
||||
#define SDCARD_DETECT_INVERTED
|
||||
#define USE_SDCARD_SPI
|
||||
#define SDCARD_SPI_INSTANCE SPI4
|
||||
#define MAX7456_SPI_INSTANCE SPI3
|
||||
#define DASHBOARD_I2C_INSTANCE (I2CDEV_2)
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW270_DEG
|
||||
#define GYRO_1_ALIGN_YAW 2700
|
|
@ -1,112 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F7X2
|
||||
|
||||
#define BOARD_NAME ANYFCM7
|
||||
#define MANUFACTURER_ID FOSS
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_BARO_MS5611
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PB2
|
||||
#define MOTOR1_PIN PB8
|
||||
#define MOTOR2_PIN PA2
|
||||
#define MOTOR3_PIN PB7
|
||||
#define MOTOR4_PIN PA3
|
||||
#define MOTOR5_PIN PA1
|
||||
#define MOTOR6_PIN PB0
|
||||
#define MOTOR7_PIN PB5
|
||||
#define MOTOR8_PIN PA0
|
||||
#define RX_PPM_PIN PB14
|
||||
#define RX_PWM1_PIN PB14
|
||||
#define RX_PWM2_PIN PB15
|
||||
#define RX_PWM3_PIN PC6
|
||||
#define RX_PWM4_PIN PC7
|
||||
#define RX_PWM5_PIN PC8
|
||||
#define RX_PWM6_PIN PC9
|
||||
#define LED_STRIP_PIN PB5
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART4_TX_PIN PC10
|
||||
#define UART5_TX_PIN PC12
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART4_RX_PIN PC11
|
||||
#define UART5_RX_PIN PD2
|
||||
#define UART6_RX_PIN PC7
|
||||
#define I2C2_SCL_PIN PB10
|
||||
#define I2C2_SDA_PIN PB11
|
||||
#define LED0_PIN PB6
|
||||
#define LED1_PIN PB9
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PC10
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PC2
|
||||
#define SPI3_SDI_PIN PC11
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PC1
|
||||
#define SPI3_SDO_PIN PC12
|
||||
#define ADC_VBAT_PIN PC0
|
||||
#define FLASH_CS_PIN PB12
|
||||
#define MAX7456_SPI_CS_PIN PD2
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
#define USB_DETECT_PIN PA8
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PB14, 3, -1) \
|
||||
TIMER_PIN_MAP( 1, PB15, 3, -1) \
|
||||
TIMER_PIN_MAP( 2, PC6 , 2, 0) \
|
||||
TIMER_PIN_MAP( 3, PC7 , 2, 1) \
|
||||
TIMER_PIN_MAP( 4, PC8 , 2, 1) \
|
||||
TIMER_PIN_MAP( 5, PC9 , 2, 0) \
|
||||
TIMER_PIN_MAP( 6, PB8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 7, PA2 , 1, 0) \
|
||||
TIMER_PIN_MAP( 8, PB7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 9, PA3 , 1, 1) \
|
||||
TIMER_PIN_MAP(10, PA1 , 2, 0) \
|
||||
TIMER_PIN_MAP(11, PB0 , 1, 1) \
|
||||
TIMER_PIN_MAP(12, PB5 , 1, 0) \
|
||||
TIMER_PIN_MAP(13, PA0 , 2, 0) \
|
||||
TIMER_PIN_MAP(14, PB1 , 1, 0) \
|
||||
TIMER_PIN_MAP(15, PB4 , 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_2)
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define BEEPER_INVERTED
|
||||
#define MAX7456_SPI_INSTANCE SPI3
|
||||
#define FLASH_SPI_INSTANCE SPI2
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW270_DEG
|
||||
#define GYRO_1_ALIGN_YAW 2700
|
|
@ -1,111 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F405
|
||||
|
||||
#define BOARD_NAME AOCODAF405
|
||||
#define MANUFACTURER_ID SJET
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_W25Q128FV
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PC13
|
||||
#define MOTOR1_PIN PC9
|
||||
#define MOTOR2_PIN PC8
|
||||
#define MOTOR3_PIN PC7
|
||||
#define MOTOR4_PIN PC6
|
||||
#define MOTOR5_PIN PA15
|
||||
#define MOTOR6_PIN PA8
|
||||
#define MOTOR7_PIN PB8
|
||||
#define RX_PPM_PIN PA10
|
||||
#define LED_STRIP_PIN PB1
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PC10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART5_TX_PIN PC12
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART3_RX_PIN PC11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART5_RX_PIN PD2
|
||||
#define I2C1_SCL_PIN PB6
|
||||
#define I2C1_SDA_PIN PB7
|
||||
#define LED0_PIN PB9
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define ESCSERIAL_PIN PD2
|
||||
#define ADC_VBAT_PIN PC2
|
||||
#define ADC_RSSI_PIN PC3
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define PINIO1_PIN PB0
|
||||
#define FLASH_CS_PIN PC0
|
||||
#define MAX7456_SPI_CS_PIN PB10
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define GYRO_1_CS_PIN PB11
|
||||
#define USB_DETECT_PIN PB12
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA10, 1, 0) \
|
||||
TIMER_PIN_MAP( 1, PC9 , 2, 0) \
|
||||
TIMER_PIN_MAP( 2, PC8 , 2, 1) \
|
||||
TIMER_PIN_MAP( 3, PC7 , 2, 1) \
|
||||
TIMER_PIN_MAP( 4, PC6 , 2, 0) \
|
||||
TIMER_PIN_MAP( 5, PA15, 1, 0) \
|
||||
TIMER_PIN_MAP( 6, PA8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 7, PB8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 8, PB1 , 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 0
|
||||
|
||||
#define MAG_I2C_INSTANCE (I2CDEV_1)
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_1)
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 500
|
||||
#define BEEPER_INVERTED
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define DASHBOARD_I2C_INSTANCE (I2CDEV_1)
|
||||
#define FLASH_SPI_INSTANCE SPI3
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW0_DEG_FLIP
|
||||
#define GYRO_1_ALIGN_PITCH 1800
|
|
@ -1,111 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F405
|
||||
|
||||
#define BOARD_NAME AOCODAF405V2MPU6000
|
||||
#define MANUFACTURER_ID SJET
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_BARO_BMP280
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_W25Q128FV
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PB8
|
||||
#define MOTOR1_PIN PC6
|
||||
#define MOTOR2_PIN PC7
|
||||
#define MOTOR3_PIN PC8
|
||||
#define MOTOR4_PIN PC9
|
||||
#define MOTOR5_PIN PA15
|
||||
#define MOTOR6_PIN PA8
|
||||
#define MOTOR7_PIN PB10
|
||||
#define MOTOR8_PIN PB11
|
||||
#define RX_PPM_PIN PA3
|
||||
#define LED_STRIP_PIN PB1
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PC10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART5_TX_PIN PC12
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART3_RX_PIN PC11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART5_RX_PIN PD2
|
||||
#define I2C1_SCL_PIN PB6
|
||||
#define I2C1_SDA_PIN PB7
|
||||
#define LED0_PIN PC13
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define ESCSERIAL_PIN PC11
|
||||
#define ADC_VBAT_PIN PC2
|
||||
#define ADC_RSSI_PIN PC3
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define FLASH_CS_PIN PC0
|
||||
#define MAX7456_SPI_CS_PIN PA13
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
#define USB_DETECT_PIN PB12
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA3 , 2, 0) \
|
||||
TIMER_PIN_MAP( 1, PC6 , 2, 1) \
|
||||
TIMER_PIN_MAP( 2, PC7 , 2, 1) \
|
||||
TIMER_PIN_MAP( 3, PC8 , 2, 1) \
|
||||
TIMER_PIN_MAP( 4, PC9 , 2, 0) \
|
||||
TIMER_PIN_MAP( 5, PA15, 1, 0) \
|
||||
TIMER_PIN_MAP( 6, PA8 , 1, 1) \
|
||||
TIMER_PIN_MAP( 7, PB10, 1, 0) \
|
||||
TIMER_PIN_MAP( 8, PB11, 1, 0) \
|
||||
TIMER_PIN_MAP( 9, PB1 , 2, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 0
|
||||
|
||||
#define MAG_I2C_INSTANCE (I2CDEV_1)
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_1)
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 500
|
||||
#define BEEPER_INVERTED
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define FLASH_SPI_INSTANCE SPI3
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW270_DEG
|
|
@ -1,110 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F405
|
||||
|
||||
#define BOARD_NAME AOCODAF405V2MPU6500
|
||||
#define MANUFACTURER_ID SJET
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define USE_BARO_BMP280
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_W25Q128FV
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PB8
|
||||
#define MOTOR1_PIN PC6
|
||||
#define MOTOR2_PIN PC7
|
||||
#define MOTOR3_PIN PC8
|
||||
#define MOTOR4_PIN PC9
|
||||
#define MOTOR5_PIN PA15
|
||||
#define MOTOR6_PIN PA8
|
||||
#define MOTOR7_PIN PB10
|
||||
#define MOTOR8_PIN PB11
|
||||
#define RX_PPM_PIN PA3
|
||||
#define LED_STRIP_PIN PB1
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PC10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART5_TX_PIN PC12
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART3_RX_PIN PC11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART5_RX_PIN PD2
|
||||
#define I2C1_SCL_PIN PB6
|
||||
#define I2C1_SDA_PIN PB7
|
||||
#define LED0_PIN PC13
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define ESCSERIAL_PIN PC11
|
||||
#define ADC_VBAT_PIN PC2
|
||||
#define ADC_RSSI_PIN PC3
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define FLASH_CS_PIN PC0
|
||||
#define MAX7456_SPI_CS_PIN PA13
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
#define USB_DETECT_PIN PB12
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA3 , 2, 0) \
|
||||
TIMER_PIN_MAP( 1, PC6 , 2, 1) \
|
||||
TIMER_PIN_MAP( 2, PC7 , 2, 1) \
|
||||
TIMER_PIN_MAP( 3, PC8 , 2, 1) \
|
||||
TIMER_PIN_MAP( 4, PC9 , 2, 0) \
|
||||
TIMER_PIN_MAP( 5, PA15, 1, 0) \
|
||||
TIMER_PIN_MAP( 6, PA8 , 1, 1) \
|
||||
TIMER_PIN_MAP( 7, PB10, 1, 0) \
|
||||
TIMER_PIN_MAP( 8, PB11, 1, 0) \
|
||||
TIMER_PIN_MAP( 9, PB1 , 2, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 0
|
||||
|
||||
#define MAG_I2C_INSTANCE (I2CDEV_1)
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_1)
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 500
|
||||
#define BEEPER_INVERTED
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define FLASH_SPI_INSTANCE SPI3
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
|
@ -1,107 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F7X2
|
||||
|
||||
#define BOARD_NAME AOCODAF722BLE
|
||||
#define MANUFACTURER_ID SJET
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_W25Q128FV
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PC13
|
||||
#define MOTOR1_PIN PC9
|
||||
#define MOTOR2_PIN PC8
|
||||
#define MOTOR3_PIN PC7
|
||||
#define MOTOR4_PIN PC6
|
||||
#define MOTOR5_PIN PB1
|
||||
#define MOTOR6_PIN PA8
|
||||
#define RX_PPM_PIN PA10
|
||||
#define LED_STRIP_PIN PB7
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PC10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART5_TX_PIN PC12
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART3_RX_PIN PC11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART5_RX_PIN PD2
|
||||
#define I2C1_SCL_PIN PB8
|
||||
#define I2C1_SDA_PIN PB9
|
||||
#define LED0_PIN PC14
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define CAMERA_CONTROL_PIN PB6
|
||||
#define ADC_VBAT_PIN PC2
|
||||
#define ADC_RSSI_PIN PC3
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define PINIO1_PIN PA15
|
||||
#define FLASH_CS_PIN PC0
|
||||
#define MAX7456_SPI_CS_PIN PA4
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define GYRO_1_CS_PIN PB12
|
||||
#define USB_DETECT_PIN PC15
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA10, 1, 0) \
|
||||
TIMER_PIN_MAP( 1, PC9 , 2, 0) \
|
||||
TIMER_PIN_MAP( 2, PC8 , 2, 1) \
|
||||
TIMER_PIN_MAP( 3, PC7 , 2, 1) \
|
||||
TIMER_PIN_MAP( 4, PC6 , 2, 1) \
|
||||
TIMER_PIN_MAP( 5, PB1 , 1, 0) \
|
||||
TIMER_PIN_MAP( 6, PA8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 7, PB7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 8, PB6 , 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC3_DMA_OPT 0
|
||||
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_1)
|
||||
#define USE_ADC
|
||||
#define ADC_INSTANCE ADC3
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 166
|
||||
#define BEEPER_INVERTED
|
||||
#define MAX7456_SPI_INSTANCE SPI1
|
||||
#define FLASH_SPI_INSTANCE SPI3
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI2
|
|
@ -1,109 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F7X2
|
||||
|
||||
#define BOARD_NAME AOCODAF722MINI
|
||||
#define MANUFACTURER_ID SJET
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_W25Q128FV
|
||||
#define USE_MAX7456
|
||||
#define USE_BARO_BMP280
|
||||
|
||||
#define BEEPER_PIN PC13
|
||||
#define MOTOR1_PIN PB4
|
||||
#define MOTOR2_PIN PB5
|
||||
#define MOTOR3_PIN PB0
|
||||
#define MOTOR4_PIN PB1
|
||||
#define MOTOR5_PIN PA15
|
||||
#define MOTOR6_PIN PB3
|
||||
#define MOTOR7_PIN PB6
|
||||
#define MOTOR8_PIN PB7
|
||||
#define RX_PPM_PIN PA10
|
||||
#define LED_STRIP_PIN PA8
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PB10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART3_RX_PIN PB11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART6_RX_PIN PC7
|
||||
#define I2C1_SCL_PIN PB8
|
||||
#define I2C1_SDA_PIN PB9
|
||||
#define LED0_PIN PA13
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PC10
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PC11
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PC12
|
||||
#define ADC_VBAT_PIN PC2
|
||||
#define ADC_RSSI_PIN PC0
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define FLASH_CS_PIN PD2
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define GYRO_1_CS_PIN PB2
|
||||
#define USB_DETECT_PIN PC14
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA10, 1, 0) \
|
||||
TIMER_PIN_MAP( 1, PB4 , 1, 0) \
|
||||
TIMER_PIN_MAP( 2, PB5 , 1, 0) \
|
||||
TIMER_PIN_MAP( 3, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 4, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 5, PA15, 1, 0) \
|
||||
TIMER_PIN_MAP( 6, PB3 , 1, 0) \
|
||||
TIMER_PIN_MAP( 7, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 8, PB7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 9, PA8 , 1, 2)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
|
||||
#define MAG_I2C_INSTANCE (I2CDEV_1)
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_1)
|
||||
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define BEEPER_INVERTED
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define FLASH_SPI_INSTANCE SPI3
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
|
@ -1,95 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F411
|
||||
|
||||
#define BOARD_NAME AOCODARCF411_AIO
|
||||
#define MANUFACTURER_ID SJET
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define USE_ACCGYRO_BMI270
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PB2
|
||||
#define MOTOR1_PIN PB4
|
||||
#define MOTOR2_PIN PB5
|
||||
#define MOTOR3_PIN PB6
|
||||
#define MOTOR4_PIN PB7
|
||||
#define MOTOR5_PIN PB3
|
||||
#define MOTOR6_PIN PB10
|
||||
#define RX_PPM_PIN PA10
|
||||
#define LED_STRIP_PIN PA8
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define I2C1_SCL_PIN PB8
|
||||
#define I2C1_SDA_PIN PB9
|
||||
#define LED0_PIN PC13
|
||||
#define LED1_PIN PC14
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define ADC_VBAT_PIN PB0
|
||||
#define ADC_CURR_PIN PB1
|
||||
#define MAX7456_SPI_CS_PIN PA4
|
||||
#define GYRO_1_EXTI_PIN PA1
|
||||
#define GYRO_1_CS_PIN PB12
|
||||
#define USB_DETECT_PIN PC15
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA10, 1, 0) \
|
||||
TIMER_PIN_MAP( 1, PB4 , 1, 0) \
|
||||
TIMER_PIN_MAP( 2, PB5 , 1, 0) \
|
||||
TIMER_PIN_MAP( 3, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 4, PB7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 5, PB3 , 1, 0) \
|
||||
TIMER_PIN_MAP( 6, PB10, 1, 0) \
|
||||
TIMER_PIN_MAP( 7, PA8 , 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 0
|
||||
|
||||
//TODO #define DSHOT_IDLE_VALUE 450
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_AUTO
|
||||
#define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_OFF
|
||||
//TODO #define MOTOR_PWM_PROTOCOL DSHOT600
|
||||
#define USE_ADC
|
||||
#define ADC_INSTANCE ADC1
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 500
|
||||
#define BEEPER_INVERTED
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
#define MAX7456_SPI_INSTANCE SPI1
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI2
|
||||
#define GYRO_1_ALIGN CW90_DEG
|
||||
#define GYRO_1_ALIGN_YAW 900
|
|
@ -1,137 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F7X2
|
||||
|
||||
#define BOARD_NAME AOCODARCF722_AIO
|
||||
#define MANUFACTURER_ID SJET
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define USE_ACC_SPI_ICM42688P
|
||||
#define USE_ACCGYRO_BMI270
|
||||
|
||||
#define USE_BARO
|
||||
#define USE_BARO_DPS310
|
||||
#define USE_BARO_BMP280
|
||||
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_W25Q128FV
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
#define USE_GYRO_SPI_ICM42688P
|
||||
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PC13
|
||||
#define MOTOR1_PIN PB4
|
||||
#define MOTOR2_PIN PB5
|
||||
#define MOTOR3_PIN PB0
|
||||
#define MOTOR4_PIN PB1
|
||||
#define MOTOR5_PIN PA15
|
||||
#define MOTOR6_PIN PB3
|
||||
#define MOTOR7_PIN PB6
|
||||
#define MOTOR8_PIN PB7
|
||||
#define RX_PPM_PIN PA3
|
||||
#define RX_PWM1_PIN PA2
|
||||
#define RX_PWM2_PIN PA1
|
||||
#define RX_PWM3_PIN PA0
|
||||
#define LED_STRIP_PIN PA8
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART3_TX_PIN PB10
|
||||
#define UART3_RX_PIN PB11
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART6_RX_PIN PC7
|
||||
#define I2C1_SCL_PIN PB8
|
||||
#define I2C1_SDA_PIN PB9
|
||||
#define LED0_PIN PA4
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PC10
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PC11
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PC12
|
||||
#define ADC_VBAT_PIN PC2
|
||||
#define ADC_RSSI_PIN PC0
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define ADC_EXTERNAL1_PIN PA4
|
||||
#define PINIO1_PIN PC8
|
||||
#define PINIO2_PIN PC9
|
||||
#define FLASH_CS_PIN PD2
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define GYRO_1_CS_PIN PB2
|
||||
#define USB_DETECT_PIN PC14
|
||||
|
||||
#define TIMER_PIN_MAPPING TIMER_PIN_MAP( 0, PB4 , 1, 0) \
|
||||
TIMER_PIN_MAP( 1, PB5 , 1, 0) \
|
||||
TIMER_PIN_MAP( 2, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 3, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 4, PA15, 1, 0) \
|
||||
TIMER_PIN_MAP( 5, PB3 , 1, 0) \
|
||||
TIMER_PIN_MAP( 6, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 7, PB7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 8, PA8 , 1, 2) \
|
||||
TIMER_PIN_MAP( 9, PA3 , 3, -1) \
|
||||
TIMER_PIN_MAP(10, PA2 , 3, -1) \
|
||||
TIMER_PIN_MAP(11, PA1 , 2, 0) \
|
||||
TIMER_PIN_MAP(12, PA0 , 2, 0) \
|
||||
TIMER_PIN_MAP(13, PB10, 1, 0)
|
||||
|
||||
#define ADC_INSTANCE ADC1
|
||||
#define ADC1_DMA_OPT 0
|
||||
#define SPI3_TX_DMA_OPT 0
|
||||
|
||||
#define BEEPER_INVERTED
|
||||
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 650
|
||||
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_1)
|
||||
#define FLASH_SPI_INSTANCE SPI3
|
||||
|
||||
#define MAG_I2C_INSTANCE (I2CDEV_1)
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
|
||||
#define SERIALRX_UART SERIAL_PORT_USART2
|
||||
|
||||
#define PINIO1_BOX 40
|
||||
#define PINIO2_BOX 41
|
||||
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_ALIGN CW0_DEG
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define ALIGN_BOARD_YAW 135
|
|
@ -1,117 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F7X2
|
||||
|
||||
#define BOARD_NAME AOCODARCF7DUAL
|
||||
#define MANUFACTURER_ID SJET
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_ACCGYRO_BMI270
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_W25Q128FV
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PC13
|
||||
#define MOTOR1_PIN PC6
|
||||
#define MOTOR2_PIN PC7
|
||||
#define MOTOR3_PIN PC8
|
||||
#define MOTOR4_PIN PC9
|
||||
#define MOTOR5_PIN PB0
|
||||
#define MOTOR6_PIN PB1
|
||||
#define MOTOR7_PIN PB6
|
||||
#define MOTOR8_PIN PB7
|
||||
#define RX_PPM_PIN PA10
|
||||
#define LED_STRIP_PIN PA0
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PC10
|
||||
#define UART5_TX_PIN PC12
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART3_RX_PIN PC11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART5_RX_PIN PD2
|
||||
#define I2C1_SCL_PIN PB8
|
||||
#define I2C2_SCL_PIN PB10
|
||||
#define I2C1_SDA_PIN PB9
|
||||
#define I2C2_SDA_PIN PB11
|
||||
#define LED0_PIN PC14
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define ADC_VBAT_PIN PC2
|
||||
#define ADC_RSSI_PIN PC3
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define FLASH_CS_PIN PC0
|
||||
#define MAX7456_SPI_CS_PIN PA4
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define GYRO_2_EXTI_PIN PA8
|
||||
#define GYRO_1_CS_PIN PB12
|
||||
#define GYRO_2_CS_PIN PA13
|
||||
#define USB_DETECT_PIN PC15
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA10, 1, 0) \
|
||||
TIMER_PIN_MAP( 1, PC6 , 2, 1) \
|
||||
TIMER_PIN_MAP( 2, PC7 , 2, 1) \
|
||||
TIMER_PIN_MAP( 3, PC8 , 2, 1) \
|
||||
TIMER_PIN_MAP( 4, PC9 , 2, 0) \
|
||||
TIMER_PIN_MAP( 5, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 6, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 7, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 8, PB7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 9, PA0 , 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 0
|
||||
|
||||
#define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_2
|
||||
#define MAG_I2C_INSTANCE (I2CDEV_2)
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_1)
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 500
|
||||
#define BEEPER_INVERTED
|
||||
#define MAX7456_SPI_INSTANCE SPI1
|
||||
#define FLASH_SPI_INSTANCE SPI3
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI2
|
||||
#define GYRO_1_ALIGN CW270_DEG
|
||||
#define GYRO_1_ALIGN_YAW 2700
|
||||
#define GYRO_2_SPI_INSTANCE SPI2
|
||||
#define GYRO_2_ALIGN CW180_DEG
|
||||
#define GYRO_2_ALIGN_YAW 1800
|
|
@ -1,141 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32H743
|
||||
|
||||
#define BOARD_NAME AOCODARCH7DUAL
|
||||
#define MANUFACTURER_ID SJET
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_ACC
|
||||
#define USE_ACCGYRO_BMI270
|
||||
#define USE_BARO_DPS310
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_W25N01G
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PA15
|
||||
#define MOTOR1_PIN PB0
|
||||
#define MOTOR2_PIN PB1
|
||||
#define MOTOR3_PIN PA0
|
||||
#define MOTOR4_PIN PA1
|
||||
#define MOTOR5_PIN PA2
|
||||
#define MOTOR6_PIN PA3
|
||||
#define MOTOR7_PIN PD12
|
||||
#define MOTOR8_PIN PD13
|
||||
#define SERVO1_PIN PE5
|
||||
#define SERVO2_PIN PE6
|
||||
#define RX_PPM_PIN PA10
|
||||
#define LED_STRIP_PIN PA8
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PD5
|
||||
#define UART3_TX_PIN PD8
|
||||
#define UART4_TX_PIN PB9
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART7_TX_PIN PE8
|
||||
#define UART8_TX_PIN PE1
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PD6
|
||||
#define UART3_RX_PIN PD9
|
||||
#define UART4_RX_PIN PB8
|
||||
#define UART6_RX_PIN PC7
|
||||
#define UART7_RX_PIN PE7
|
||||
#define UART8_RX_PIN PE0
|
||||
#define I2C1_SCL_PIN PB6
|
||||
#define I2C2_SCL_PIN PB10
|
||||
#define I2C1_SDA_PIN PB7
|
||||
#define I2C2_SDA_PIN PB11
|
||||
#define LED0_PIN PE3
|
||||
#define LED1_PIN PE4
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI4_SCK_PIN PE12
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI4_SDI_PIN PE13
|
||||
#define SPI1_SDO_PIN PD7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define SPI4_SDO_PIN PE14
|
||||
#define ESCSERIAL_PIN PC7
|
||||
#define ADC_VBAT_PIN PC0
|
||||
#define ADC_RSSI_PIN PC5
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define ADC_EXTERNAL1_PIN PC4
|
||||
#define PINIO1_PIN PD10
|
||||
#define PINIO2_PIN PD11
|
||||
#define FLASH_CS_PIN PD3
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define GYRO_1_EXTI_PIN PB2
|
||||
#define GYRO_2_EXTI_PIN PE15
|
||||
#define GYRO_1_CS_PIN PC15
|
||||
#define GYRO_2_CS_PIN PE11
|
||||
#define USB_DETECT_PIN PE2
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA10, 1, 0) \
|
||||
TIMER_PIN_MAP( 1, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 2, PB1 , 2, 1) \
|
||||
TIMER_PIN_MAP( 3, PA0 , 2, 2) \
|
||||
TIMER_PIN_MAP( 4, PA1 , 2, 3) \
|
||||
TIMER_PIN_MAP( 5, PA2 , 2, 4) \
|
||||
TIMER_PIN_MAP( 6, PA3 , 2, 5) \
|
||||
TIMER_PIN_MAP( 7, PD12, 1, 6) \
|
||||
TIMER_PIN_MAP( 8, PD13, 1, 7) \
|
||||
TIMER_PIN_MAP( 9, PD14, 1, 12) \
|
||||
TIMER_PIN_MAP(10, PD15, 1, -1) \
|
||||
TIMER_PIN_MAP(11, PE5 , 1, 0) \
|
||||
TIMER_PIN_MAP(12, PE6 , 1, -1) \
|
||||
TIMER_PIN_MAP(13, PA8 , 1, 14)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 8
|
||||
#define ADC3_DMA_OPT 9
|
||||
#define TIMUP1_DMA_OPT 0
|
||||
#define TIMUP3_DMA_OPT 2
|
||||
#define TIMUP4_DMA_OPT 1
|
||||
#define TIMUP5_DMA_OPT 0
|
||||
|
||||
#define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH
|
||||
#define MAG_I2C_INSTANCE (I2CDEV_1)
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_2)
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 500
|
||||
#define BEEPER_INVERTED
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define PINIO1_BOX 40
|
||||
#define PINIO2_BOX 41
|
||||
#define FLASH_SPI_INSTANCE SPI3
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW90_DEG
|
||||
#define GYRO_1_ALIGN_YAW 900
|
||||
#define GYRO_2_SPI_INSTANCE SPI4
|
||||
#define GYRO_2_ALIGN CW180_DEG
|
||||
#define GYRO_2_ALIGN_YAW 1800
|
|
@ -1,108 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F7X2
|
||||
|
||||
#define BOARD_NAME APEXF7
|
||||
#define MANUFACTURER_ID APEX
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_W25Q128FV
|
||||
#define USE_BARO_BMP280
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PB0
|
||||
#define MOTOR1_PIN PC8
|
||||
#define MOTOR2_PIN PB6
|
||||
#define MOTOR3_PIN PC9
|
||||
#define MOTOR4_PIN PB7
|
||||
#define LED_STRIP_PIN PA15
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PC10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART5_TX_PIN PC12
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART3_RX_PIN PC11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART6_RX_PIN PC7
|
||||
#define I2C1_SCL_PIN PB8
|
||||
#define I2C1_SDA_PIN PB9
|
||||
#define LED0_PIN PB12
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define CAMERA_CONTROL_PIN PA8
|
||||
#define ADC_VBAT_PIN PC0
|
||||
#define ADC_RSSI_PIN PC2
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define PINIO1_PIN PC14
|
||||
#define PINIO2_PIN PB11
|
||||
#define FLASH_CS_PIN PA3
|
||||
#define MAX7456_SPI_CS_PIN PC15
|
||||
#define GYRO_1_EXTI_PIN PA4
|
||||
#define GYRO_2_EXTI_PIN PC3
|
||||
#define GYRO_1_CS_PIN PD2
|
||||
#define GYRO_2_CS_PIN PB10
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA15, 1, 0) \
|
||||
TIMER_PIN_MAP( 1, PA8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 2, PC8 , 2, 0) \
|
||||
TIMER_PIN_MAP( 3, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 4, PC9 , 2, 0) \
|
||||
TIMER_PIN_MAP( 5, PB7 , 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_1)
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define BEEPER_INVERTED
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define PINIO1_CONFIG 129
|
||||
#define PINIO2_CONFIG 129
|
||||
#define PINIO1_BOX 0
|
||||
#define PINIO2_BOX 40
|
||||
#define FLASH_SPI_INSTANCE SPI1
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI3
|
||||
#define GYRO_2_SPI_INSTANCE SPI3
|
||||
#define GYRO_2_ALIGN CW270_DEG
|
||||
#define GYRO_2_ALIGN_YAW 2700
|
|
@ -1,107 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F7X2
|
||||
|
||||
#define BOARD_NAME ARESF7
|
||||
#define MANUFACTURER_ID RCTI
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_W25N01G
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PC15
|
||||
#define MOTOR1_PIN PC6
|
||||
#define MOTOR2_PIN PC7
|
||||
#define MOTOR3_PIN PC8
|
||||
#define MOTOR4_PIN PC9
|
||||
#define RX_PPM_PIN PA9
|
||||
#define LED_STRIP_PIN PB0
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PC10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART5_TX_PIN PC12
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART3_RX_PIN PC11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART5_RX_PIN PD2
|
||||
#define I2C2_SCL_PIN PB10
|
||||
#define I2C2_SDA_PIN PB11
|
||||
#define LED0_PIN PC0
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define CAMERA_CONTROL_PIN PB6
|
||||
#define ADC_VBAT_PIN PC2
|
||||
#define ADC_RSSI_PIN PC4
|
||||
#define ADC_CURR_PIN PC3
|
||||
#define PINIO1_PIN PB1
|
||||
#define FLASH_CS_PIN PB12
|
||||
#define MAX7456_SPI_CS_PIN PA15
|
||||
#define GYRO_1_EXTI_PIN PC14
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
#define USB_DETECT_PIN PC1
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA9 , 1, 0) \
|
||||
TIMER_PIN_MAP( 1, PB0 , 3, 1) \
|
||||
TIMER_PIN_MAP( 2, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 3, PC6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 4, PC7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 5, PC8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 6, PC9 , 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_2)
|
||||
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 366
|
||||
#define BEEPER_INVERTED
|
||||
//TODO #define OSD_CRAFT_NAME_POS 2048
|
||||
#define MAX7456_SPI_INSTANCE SPI3
|
||||
#define PINIO1_CONFIG 129
|
||||
#define PINIO1_BOX 40
|
||||
#define FLASH_SPI_INSTANCE SPI2
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW180_DEG
|
||||
#define GYRO_1_ALIGN_YAW 1800
|
|
@ -1,108 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F405
|
||||
|
||||
#define BOARD_NAME ATOMRCF405
|
||||
#define MANUFACTURER_ID SKZO
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_ACCGYRO_BMI270
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_W25Q128FV
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PC13
|
||||
#define MOTOR1_PIN PB0
|
||||
#define MOTOR2_PIN PB1
|
||||
#define MOTOR3_PIN PC7
|
||||
#define MOTOR4_PIN PB4
|
||||
#define MOTOR5_PIN PC8
|
||||
#define MOTOR6_PIN PC9
|
||||
#define RX_PPM_PIN PB15
|
||||
#define LED_STRIP_PIN PB6
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PB10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART5_TX_PIN PC12
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART3_RX_PIN PB11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART5_RX_PIN PD2
|
||||
#define I2C1_SCL_PIN PB8
|
||||
#define I2C1_SDA_PIN PB9
|
||||
#define LED0_PIN PC14
|
||||
#define LED1_PIN PB2
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PC10
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PC11
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PC3
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define ESCSERIAL_PIN PA3
|
||||
#define CAMERA_CONTROL_PIN PB3
|
||||
#define ADC_VBAT_PIN PC2
|
||||
#define ADC_RSSI_PIN PC0
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define FLASH_CS_PIN PB12
|
||||
#define MAX7456_SPI_CS_PIN PA15
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PB15, 3, -1) \
|
||||
TIMER_PIN_MAP( 1, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 2, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 3, PC7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 4, PB4 , 1, 0) \
|
||||
TIMER_PIN_MAP( 5, PC8 , 2, 0) \
|
||||
TIMER_PIN_MAP( 6, PC9 , 2, 0) \
|
||||
TIMER_PIN_MAP( 7, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 8, PB3 , 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_1)
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define BEEPER_INVERTED
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
#define MAX7456_SPI_INSTANCE SPI3
|
||||
#define FLASH_SPI_INSTANCE SPI2
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW90_DEG
|
||||
#define GYRO_1_ALIGN_YAW 900
|
|
@ -1,86 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F411
|
||||
|
||||
#define BOARD_NAME ATOMRCF411
|
||||
#define MANUFACTURER_ID SKZO
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PB2
|
||||
#define MOTOR1_PIN PB4
|
||||
#define MOTOR2_PIN PB5
|
||||
#define MOTOR3_PIN PB6
|
||||
#define MOTOR4_PIN PB7
|
||||
#define RX_PPM_PIN PA3
|
||||
#define LED_STRIP_PIN PA8
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define I2C1_SCL_PIN PB8
|
||||
#define I2C1_SDA_PIN PB9
|
||||
#define LED0_PIN PC13
|
||||
#define LED1_PIN PC14
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define ESCSERIAL_PIN PA8
|
||||
#define ADC_VBAT_PIN PB0
|
||||
#define ADC_RSSI_PIN PA0
|
||||
#define ADC_CURR_PIN PB1
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define GYRO_1_EXTI_PIN PA1
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PB4 , 1, 0) \
|
||||
TIMER_PIN_MAP( 1, PB5 , 1, 0) \
|
||||
TIMER_PIN_MAP( 2, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 3, PB7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 4, PA8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 5, PA3 , 3, -1)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_1)
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_AUTO
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define BEEPER_INVERTED
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW90_DEG
|
||||
#define GYRO_1_ALIGN_YAW 900
|
|
@ -1,106 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F7X2
|
||||
|
||||
#define BOARD_NAME ATOMRCF722
|
||||
#define MANUFACTURER_ID SKZO
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_W25Q128FV
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PC13
|
||||
#define MOTOR1_PIN PB0
|
||||
#define MOTOR2_PIN PB1
|
||||
#define MOTOR3_PIN PC7
|
||||
#define MOTOR4_PIN PB4
|
||||
#define MOTOR5_PIN PC8
|
||||
#define MOTOR6_PIN PC6
|
||||
#define RX_PPM_PIN PB15
|
||||
#define LED_STRIP_PIN PB6
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PB10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART5_TX_PIN PC12
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART3_RX_PIN PB11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART5_RX_PIN PD2
|
||||
#define I2C1_SCL_PIN PB8
|
||||
#define I2C1_SDA_PIN PB9
|
||||
#define LED0_PIN PC14
|
||||
#define LED1_PIN PB2
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PC10
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PC11
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PC3
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define ESCSERIAL_PIN PA3
|
||||
#define CAMERA_CONTROL_PIN PB3
|
||||
#define ADC_VBAT_PIN PC2
|
||||
#define ADC_RSSI_PIN PC0
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define FLASH_CS_PIN PB12
|
||||
#define MAX7456_SPI_CS_PIN PA15
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PB15, 3, -1) \
|
||||
TIMER_PIN_MAP( 1, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 2, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 3, PC7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 4, PB4 , 1, 0) \
|
||||
TIMER_PIN_MAP( 5, PC8 , 2, 1) \
|
||||
TIMER_PIN_MAP( 6, PC6 , 2, 0) \
|
||||
TIMER_PIN_MAP( 7, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 8, PB3 , 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 0
|
||||
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_1)
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define BEEPER_INVERTED
|
||||
#define MAX7456_SPI_INSTANCE SPI3
|
||||
#define FLASH_SPI_INSTANCE SPI2
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW90_DEG
|
||||
#define GYRO_1_ALIGN_YAW 900
|
|
@ -1,57 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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/>.
|
||||
*/
|
||||
|
||||
#define FC_TARGET_MCU AT32F435M
|
||||
|
||||
#define BOARD_NAME ATSTARTF435
|
||||
#define MANUFACTURER_ID AT
|
||||
|
||||
// AT-START-F435 V1.0 LED assignments to use as a default
|
||||
#define LED0_PIN PD13 // Labelled LED2 Red
|
||||
#define LED1_PIN PD14 // Labelled LED3 Amber
|
||||
#define LED2_PIN PD15 // Labelled LED4 Green
|
||||
|
||||
// AT-START-F435 J7 connector SPI 2
|
||||
#define SPI2_SCK_PIN PD1
|
||||
#define SPI2_SDI_PIN PC2
|
||||
#define SPI2_SDO_PIN PD4
|
||||
|
||||
#define J7_NSS PD0
|
||||
|
||||
#define GYRO_1_CS_PIN J7_NSS
|
||||
#define GYRO_1_SPI_INSTANCE SPI2
|
||||
|
||||
#define USE_EXTI
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_EXTI
|
||||
#define GYRO_1_EXTI_PIN PB11
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACCGYRO_BMI160
|
||||
|
||||
// These would be useful for connecting configurator via the at-link,
|
||||
// but don't seem to be active when defined here
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART1_TX_PIN PA9
|
||||
#define USE_MSP_UART SERIAL_PORT_USART1
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
|
@ -1,106 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F7X2
|
||||
|
||||
#define BOARD_NAME AXISFLYINGF7
|
||||
#define MANUFACTURER_ID AXFL
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_ACCGYRO_BMI270
|
||||
#define USE_BARO_DPS310
|
||||
#define USE_BARO_QMP6988
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_W25Q128FV
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PB2
|
||||
#define MOTOR1_PIN PC9
|
||||
#define MOTOR2_PIN PB0
|
||||
#define MOTOR3_PIN PC8
|
||||
#define MOTOR4_PIN PB1
|
||||
#define MOTOR5_PIN PB6
|
||||
#define MOTOR6_PIN PB7
|
||||
#define MOTOR7_PIN PC7
|
||||
#define MOTOR8_PIN PC6
|
||||
#define LED_STRIP_PIN PA15
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PC10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART5_TX_PIN PC12
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART3_RX_PIN PC11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART5_RX_PIN PD2
|
||||
#define I2C1_SCL_PIN PB8
|
||||
#define I2C1_SDA_PIN PB9
|
||||
#define LED0_PIN PB10
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define CAMERA_CONTROL_PIN PA8
|
||||
#define ADC_VBAT_PIN PC0
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define FLASH_CS_PIN PC4
|
||||
#define MAX7456_SPI_CS_PIN PC13
|
||||
#define GYRO_1_CS_PIN PB12
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA15, 1, 0) \
|
||||
TIMER_PIN_MAP( 1, PA8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 2, PC9 , 2, 0) \
|
||||
TIMER_PIN_MAP( 3, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 4, PC8 , 2, 0) \
|
||||
TIMER_PIN_MAP( 5, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 6, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 7, PB7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 8, PC7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 9, PC6 , 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_1)
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 179
|
||||
#define BEEPER_INVERTED
|
||||
#define MAX7456_SPI_INSTANCE SPI3
|
||||
#define FLASH_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_SPI_INSTANCE SPI2
|
||||
#define USE_SPI_GYRO
|
|
@ -1,115 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F7X2
|
||||
|
||||
#define BOARD_NAME AXISFLYINGF7PRO
|
||||
#define MANUFACTURER_ID AXFL
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_ACC
|
||||
#define USE_ACCGYRO_BMI270
|
||||
#define USE_GYRO_SPI_ICM42688P
|
||||
#define USE_ACC_SPI_ICM42688P
|
||||
#define USE_BARO_DPS310
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_W25Q128FV
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PC13
|
||||
#define MOTOR1_PIN PB1
|
||||
#define MOTOR2_PIN PB0
|
||||
#define MOTOR3_PIN PC8
|
||||
#define MOTOR4_PIN PC9
|
||||
#define MOTOR5_PIN PB6
|
||||
#define MOTOR6_PIN PB7
|
||||
#define MOTOR7_PIN PB10
|
||||
#define MOTOR8_PIN PB11
|
||||
#define RX_PPM_PIN PA3
|
||||
#define LED_STRIP_PIN PA8
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PC10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART5_TX_PIN PC12
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART3_RX_PIN PC11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART5_RX_PIN PD2
|
||||
#define UART6_RX_PIN PC7
|
||||
#define I2C1_SCL_PIN PB8
|
||||
#define I2C1_SDA_PIN PB9
|
||||
#define LED0_PIN PC15
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PC3
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define CAMERA_CONTROL_PIN PB15
|
||||
#define ADC_VBAT_PIN PC2
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define PINIO1_PIN PC0
|
||||
#define PINIO2_PIN PC14
|
||||
#define FLASH_CS_PIN PA15
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
#define USB_DETECT_PIN PB2
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 1, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 2, PC8 , 2, 1) \
|
||||
TIMER_PIN_MAP( 3, PC9 , 2, 0) \
|
||||
TIMER_PIN_MAP( 4, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 5, PB7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 6, PB10, 1, 0) \
|
||||
TIMER_PIN_MAP( 7, PB11, 1, 1) \
|
||||
TIMER_PIN_MAP( 8, PA8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 9, PA3 , 3, -1) \
|
||||
TIMER_PIN_MAP(10, PB15, 3, -1)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 0
|
||||
|
||||
#define MAG_I2C_INSTANCE (I2CDEV_1)
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_1)
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 200
|
||||
#define BEEPER_INVERTED
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define PINIO1_BOX 40
|
||||
#define PINIO2_BOX 41
|
||||
#define FLASH_SPI_INSTANCE SPI3
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
|
@ -1,113 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F405
|
||||
|
||||
#define BOARD_NAME BEEROTORF4
|
||||
#define MANUFACTURER_ID RCTI
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_ICM20689
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_ICM20689
|
||||
#define USE_MAX7456
|
||||
#define USE_SDCARD
|
||||
|
||||
#define BEEPER_PIN PB3
|
||||
#define MOTOR1_PIN PB0
|
||||
#define MOTOR2_PIN PB1
|
||||
#define MOTOR3_PIN PA1
|
||||
#define MOTOR4_PIN PA0
|
||||
#define MOTOR5_PIN PC6
|
||||
#define MOTOR6_PIN PC7
|
||||
#define MOTOR7_PIN PB5
|
||||
#define MOTOR8_PIN PB9
|
||||
#define RX_PPM_PIN PA3
|
||||
#define LED_STRIP_PIN PB8
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PB10
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART3_RX_PIN PB11
|
||||
#define INVERTER_PIN_UART2 PC15
|
||||
#define INVERTER_PIN_UART3 PC14
|
||||
#define I2C1_SCL_PIN PB6
|
||||
#define I2C1_SDA_PIN PB7
|
||||
#define LED0_PIN PB4
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PC10
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PC11
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PC12
|
||||
#define ESCSERIAL_PIN PA3
|
||||
#define ADC_VBAT_PIN PC0
|
||||
#define ADC_RSSI_PIN PC2
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define SDCARD_SPI_CS_PIN PB12
|
||||
#define SDCARD_DETECT_PIN PC3
|
||||
#define MAX7456_SPI_CS_PIN PA15
|
||||
#define GYRO_1_EXTI_PIN PA8
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
#define USB_DETECT_PIN PC5
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA3 , 3, -1) \
|
||||
TIMER_PIN_MAP( 1, PB0 , 1, 0) \
|
||||
TIMER_PIN_MAP( 2, PB1 , 3, 1) \
|
||||
TIMER_PIN_MAP( 3, PA1 , 1, 0) \
|
||||
TIMER_PIN_MAP( 4, PA0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 5, PC6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 6, PC7 , 2, 0) \
|
||||
TIMER_PIN_MAP( 7, PB5 , 1, 0) \
|
||||
TIMER_PIN_MAP( 8, PB9 , 1, -1) \
|
||||
TIMER_PIN_MAP( 9, PB8 , 1, 0)
|
||||
|
||||
|
||||
|
||||
#define SPI2_TX_DMA_OPT 0
|
||||
#define SPI3_TX_DMA_OPT 0
|
||||
#define SPI3_RX_DMA_OPT 0
|
||||
#define ADC1_DMA_OPT 0
|
||||
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_1)
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_OFF
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define BEEPER_INVERTED
|
||||
#define SDCARD_DETECT_INVERTED
|
||||
#define USE_SDCARD_SPI
|
||||
#define SDCARD_SPI_INSTANCE SPI2
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
#define MAX7456_SPI_INSTANCE SPI3
|
||||
#define DASHBOARD_I2C_INSTANCE (I2CDEV_1)
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW270_DEG
|
||||
#define GYRO_2_SPI_INSTANCE SPI1
|
|
@ -1,105 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F405
|
||||
|
||||
#define BOARD_NAME BETAFLIGHTF4
|
||||
#define MANUFACTURER_ID FPVM
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_W25Q128FV
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PB4
|
||||
#define MOTOR1_PIN PB0
|
||||
#define MOTOR2_PIN PB1
|
||||
#define MOTOR3_PIN PC9
|
||||
#define MOTOR4_PIN PC8
|
||||
#define MOTOR5_PIN PB6
|
||||
#define RX_PPM_PIN PB8
|
||||
#define RX_PWM1_PIN PB8
|
||||
#define LED_STRIP_PIN PB6
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PB10
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART3_RX_PIN PB11
|
||||
#define UART6_RX_PIN PC7
|
||||
#define INVERTER_PIN_UART2 PC13
|
||||
#define LED0_PIN PB5
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PC10
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PC11
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PC12
|
||||
#define ESCSERIAL_PIN PB8
|
||||
#define ADC_VBAT_PIN PC2
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define FLASH_CS_PIN PA15
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
#define USB_DETECT_PIN PC5
|
||||
#define PULLDOWN1_PIN PB8
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PB8 , 2, -1) \
|
||||
TIMER_PIN_MAP( 1, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 2, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 3, PC9 , 2, 0) \
|
||||
TIMER_PIN_MAP( 4, PC8 , 2, 0) \
|
||||
TIMER_PIN_MAP( 5, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 6, PA9 , 1, 0) \
|
||||
TIMER_PIN_MAP( 7, PA10, 1, 0) \
|
||||
TIMER_PIN_MAP( 8, PA2 , 2, 0) \
|
||||
TIMER_PIN_MAP( 9, PA3 , 3, -1) \
|
||||
TIMER_PIN_MAP(10, PB10, 1, 0) \
|
||||
TIMER_PIN_MAP(11, PB11, 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define MAG_I2C_INSTANCE (I2CDEV_2)
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_2)
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define BEEPER_INVERTED
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define DASHBOARD_I2C_INSTANCE (I2CDEV_2)
|
||||
#define FLASH_SPI_INSTANCE SPI3
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW180_DEG
|
||||
#define GYRO_1_ALIGN_YAW 1800
|
|
@ -1,131 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F405
|
||||
|
||||
#define BOARD_NAME BETAFPVF405
|
||||
#define MANUFACTURER_ID BEFH
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_GYRO_SPI_ICM42688P
|
||||
#define USE_ACC_SPI_ICM42688P
|
||||
#define USE_ACCGYRO_BMI270
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PB4
|
||||
#define MOTOR1_PIN PB0
|
||||
#define MOTOR2_PIN PB1
|
||||
#define MOTOR3_PIN PA3
|
||||
#define MOTOR4_PIN PA2
|
||||
#define MOTOR5_PIN PC8
|
||||
#define MOTOR6_PIN PA8
|
||||
#define RX_PPM_PIN PB8
|
||||
#define SONAR_TRIGGER_PIN PC9
|
||||
#define SONAR_ECHO_PIN PA8
|
||||
#define LED_STRIP_PIN PB6
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART3_TX_PIN PB10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART3_RX_PIN PB11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART5_RX_PIN PD2
|
||||
#define UART6_RX_PIN PC7
|
||||
#define INVERTER_PIN_UART3 PC9
|
||||
#define INVERTER_PIN_UART6 PC8
|
||||
#define LED0_PIN PB5
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PC10
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PC11
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PC12
|
||||
#define ESCSERIAL_PIN PB8
|
||||
#define ADC_VBAT_PIN PC2
|
||||
#define ADC_RSSI_PIN PC0
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define BARO_CS_PIN PB3
|
||||
#define SDCARD_SPI_CS_PIN PB12
|
||||
#define SDCARD_DETECT_PIN PB7
|
||||
#define FLASH_CS_PIN PB12
|
||||
#define MAX7456_SPI_CS_PIN PA15
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
#define USB_DETECT_PIN PC5
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PB8 , 2, -1) \
|
||||
TIMER_PIN_MAP( 1, PC8 , 2, -1) \
|
||||
TIMER_PIN_MAP( 2, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 3, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 4, PA3 , 1, 1) \
|
||||
TIMER_PIN_MAP( 5, PA2 , 1, 0) \
|
||||
TIMER_PIN_MAP( 6, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 7, PA8 , 1, -1) \
|
||||
TIMER_PIN_MAP( 8, PA9 , 1, 0) \
|
||||
TIMER_PIN_MAP( 9, PA10, 1, 0)
|
||||
|
||||
|
||||
|
||||
#define SPI2_TX_DMA_OPT 0
|
||||
#define ADC2_DMA_OPT 1
|
||||
|
||||
#define MAG_I2C_INSTANCE (I2CDEV_2)
|
||||
#define USE_BARO
|
||||
#define BARO_SPI_INSTANCE SPI3
|
||||
#define DEFAULT_BARO_DEVICE BARO_NONE
|
||||
|
||||
#define USE_ADC
|
||||
#define ADC_INSTANCE ADC2
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
//TODO #define DSHOT_IDLE_VALUE 450
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
//TODO #define MOTOR_PWM_PROTOCOL DSHOT600
|
||||
//TODO #define MOTOR_POLES 12
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define BEEPER_INVERTED
|
||||
//TODO #define YAW_MOTORS_REVERSED ON
|
||||
#define SDCARD_DETECT_INVERTED
|
||||
#define USE_SDCARD_SPI
|
||||
#define SDCARD_SPI_INSTANCE SPI2
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
//TODO #define VTX_BAND 5
|
||||
//TODO #define VTX_CHANNEL 8
|
||||
//TODO #define VTX_POWER 1
|
||||
//TODO #define VTX_FREQ 5917
|
||||
#define MAX7456_SPI_INSTANCE SPI3
|
||||
#define DASHBOARD_I2C_INSTANCE (I2CDEV_2)
|
||||
#define FLASH_SPI_INSTANCE SPI2
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW270_DEG
|
||||
#define GYRO_1_ALIGN_YAW 2700
|
||||
#define GYRO_2_SPI_INSTANCE SPI1
|
|
@ -1,105 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F411
|
||||
|
||||
#define BOARD_NAME BETAFPVF411
|
||||
#define MANUFACTURER_ID BEFH
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_ACCGYRO_BMI270
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_M25P16
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PB2
|
||||
#define MOTOR1_PIN PB4
|
||||
#define MOTOR2_PIN PB5
|
||||
#define MOTOR3_PIN PB6
|
||||
#define MOTOR4_PIN PB7
|
||||
#define RX_PPM_PIN PA3
|
||||
#define LED_STRIP_PIN PA8
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define SOFTSERIAL1_TX_PIN PB3
|
||||
#define SOFTSERIAL2_TX_PIN PB10
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define SOFTSERIAL1_RX_PIN PB3
|
||||
#define SOFTSERIAL2_RX_PIN PB10
|
||||
#define I2C1_SCL_PIN PB8
|
||||
#define I2C1_SDA_PIN PB9
|
||||
#define LED0_PIN PC13
|
||||
#define LED1_PIN PC14
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define ADC_VBAT_PIN PB0
|
||||
#define ADC_CURR_PIN PB1
|
||||
#define FLASH_CS_PIN PA0
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define GYRO_1_EXTI_PIN PA1
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
#define USB_DETECT_PIN PC15
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA3 , 3, -1) \
|
||||
TIMER_PIN_MAP( 1, PB4 , 1, 0) \
|
||||
TIMER_PIN_MAP( 2, PB5 , 1, 0) \
|
||||
TIMER_PIN_MAP( 3, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 4, PB7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 5, PB3 , 1, 0) \
|
||||
TIMER_PIN_MAP( 6, PB10, 1, 0) \
|
||||
TIMER_PIN_MAP( 7, PA0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 8, PA2 , 2, 0) \
|
||||
TIMER_PIN_MAP( 9, PA8 , 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_1)
|
||||
#define DEFAULT_BARO_DEVICE BARO_NONE
|
||||
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
//TODO #define DSHOT_IDLE_VALUE 450
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_AUTO
|
||||
#define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_OFF
|
||||
//TODO #define MOTOR_PWM_PROTOCOL DSHOT600
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define BEEPER_INVERTED
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define FLASH_SPI_INSTANCE SPI2
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW180_DEG
|
||||
#define GYRO_1_ALIGN_YAW 1800
|
|
@ -1,104 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F411
|
||||
|
||||
#define BOARD_NAME BETAFPVF411RX
|
||||
#define MANUFACTURER_ID BEFH
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
#define USE_ACCGYRO_BMI270
|
||||
#define USE_RX_CC2500
|
||||
#define USE_MAX7456
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_W25Q128FV
|
||||
|
||||
#define MOTOR1_PIN PB8
|
||||
#define MOTOR2_PIN PA0
|
||||
#define MOTOR3_PIN PB10
|
||||
#define MOTOR4_PIN PB7
|
||||
#define RX_PPM_PIN PA10
|
||||
#define LED_STRIP_PIN PB1
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define LED0_PIN PC14
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define ADC_VBAT_PIN PA1
|
||||
#define ADC_CURR_PIN PB0
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define RX_SPI_CS_PIN PA15
|
||||
#define RX_SPI_EXTI_PIN PC13
|
||||
#define RX_SPI_BIND_PIN PB2
|
||||
#define RX_SPI_LED_PIN PC15
|
||||
#define RX_SPI_CC2500_TX_EN_PIN PB9
|
||||
#define RX_SPI_CC2500_LNA_EN_PIN PA13
|
||||
#define RX_SPI_CC2500_ANT_SEL_PIN PA14
|
||||
#define GYRO_1_EXTI_PIN PB6
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
#define FLASH_CS_PIN PA8
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA0 , 1, 0) \
|
||||
TIMER_PIN_MAP( 1, PA8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 2, PA10, 1, -1) \
|
||||
TIMER_PIN_MAP( 3, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 4, PB7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 5, PB8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 6, PB10, 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
//TODO #define RX_SPI_PROTOCOL FRSKY_X
|
||||
#define RX_SPI_INSTANCE SPI3
|
||||
#define RX_SPI_LED_INVERTED
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_AUTO
|
||||
#define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_OFF
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 179
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
//TODO #define CC2500_SPI_CHIP_DETECT OFF
|
||||
#define FLASH_SPI_INSTANCE SPI2
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW180_DEG
|
||||
#define GYRO_1_ALIGN_YAW 1800
|
|
@ -1,120 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F411
|
||||
|
||||
#define BOARD_NAME BETAFPVF4SX1280
|
||||
#define MANUFACTURER_ID BEFH
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_ICM20689
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_ICM20689
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_ACCGYRO_BMI270
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_W25Q128FV
|
||||
#define USE_MAX7456
|
||||
#define USE_RX_SPI
|
||||
#define USE_RX_EXPRESSLRS
|
||||
#define USE_RX_EXPRESSLRS_TELEMETRY
|
||||
#define USE_RX_SX1280
|
||||
#define RX_CHANNELS_AETR
|
||||
#define RX_SPI_DEFAULT_PROTOCOL RX_SPI_EXPRESSLRS
|
||||
#define DEFAULT_RX_FEATURE FEATURE_RX_SPI
|
||||
#define RX_SPI_PROTOCOL EXPRESSLRS
|
||||
#define RX_EXPRESSLRS_TIMER_INSTANCE TIM5
|
||||
#define RX_EXPRESSLRS_SPI_RESET_PIN PB9
|
||||
#define RX_EXPRESSLRS_SPI_BUSY_PIN PA13
|
||||
#define RX_SPI_CS PA15
|
||||
#define RX_SPI_EXTI PC13
|
||||
#define RX_SPI_BIND PB2
|
||||
#define RX_SPI_LED PC15
|
||||
|
||||
#define BEEPER_PIN PA14
|
||||
#define MOTOR1_PIN PB8
|
||||
#define MOTOR2_PIN PA0
|
||||
#define MOTOR3_PIN PB10
|
||||
#define MOTOR4_PIN PB7
|
||||
#define MOTOR5_PIN PA8
|
||||
#define MOTOR6_PIN PA10
|
||||
#define LED_STRIP_PIN PB1
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define SOFTSERIAL1_TX_PIN PA8
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define SOFTSERIAL1_RX_PIN PA8
|
||||
#define LED0_PIN PC14
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define ADC_VBAT_PIN PA1
|
||||
#define ADC_CURR_PIN PB0
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define RX_SPI_CS_PIN PA15
|
||||
#define RX_SPI_EXTI_PIN PC13
|
||||
#define RX_SPI_BIND_PIN PB2
|
||||
#define RX_SPI_LED_PIN PC15
|
||||
#define RX_SPI_EXPRESSLRS_RESET_PIN PB9
|
||||
#define RX_SPI_EXPRESSLRS_BUSY_PIN PA13
|
||||
#define GYRO_1_EXTI_PIN PB6
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
#define FLASH_CS_PIN PA10
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 1, PB8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 2, PA0 , 1, 0) \
|
||||
TIMER_PIN_MAP( 3, PB10, 1, 0) \
|
||||
TIMER_PIN_MAP( 4, PB7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 5, PA8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 6, PA10, 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 0
|
||||
|
||||
#define RX_SPI_INSTANCE SPI3
|
||||
#define RX_SPI_LED_INVERTED
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_AUTO
|
||||
#define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_OFF
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 800
|
||||
#define BEEPER_INVERTED
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
#define FLASH_SPI_INSTANCE SPI2
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW90_DEG
|
||||
#define GYRO_1_ALIGN_YAW 900
|
||||
//TODO #define EXPRESSLRS_DOMAIN ISM2400
|
|
@ -1,115 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F7X2
|
||||
|
||||
#define BOARD_NAME BETAFPVF722
|
||||
#define MANUFACTURER_ID BEFH
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_ACCGYRO_BMI270
|
||||
#define USE_GYRO_SPI_ICM42688P
|
||||
#define USE_ACC_SPI_ICM42688P
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_W25Q128FV
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PC14
|
||||
#define MOTOR1_PIN PB0
|
||||
#define MOTOR2_PIN PB1
|
||||
#define MOTOR3_PIN PA1
|
||||
#define MOTOR4_PIN PA0
|
||||
#define MOTOR5_PIN PB6
|
||||
#define MOTOR6_PIN PB7
|
||||
|
||||
#define LED_STRIP_PIN PA8
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PB10
|
||||
#define UART4_TX_PIN PC10
|
||||
#define UART5_TX_PIN PC12
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART3_RX_PIN PB11
|
||||
#define UART4_RX_PIN PC11
|
||||
#define UART5_RX_PIN PD2
|
||||
#define UART6_RX_PIN PC7
|
||||
#define I2C1_SCL_PIN PB8
|
||||
#define I2C1_SDA_PIN PB9
|
||||
#define LED0_PIN PC15
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define ADC_VBAT_PIN PC0
|
||||
#define ADC_RSSI_PIN PC2
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define FLASH_CS_PIN PB12
|
||||
#define BARO_CS_PIN PC13
|
||||
#define MAX7456_SPI_CS_PIN PA15
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define GYRO_2_EXTI_PIN PB2
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
#define GYRO_2_CS_PIN PC3
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 1, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 2, PA0 , 1, 0) \
|
||||
TIMER_PIN_MAP( 3, PA1 , 1, 0) \
|
||||
TIMER_PIN_MAP( 4, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 5, PB7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 6, PA8 , 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 0
|
||||
|
||||
#define USE_BARO
|
||||
#define BARO_SPI_INSTANCE SPI3
|
||||
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
//TODO #define DSHOT_IDLE_VALUE 450
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 450
|
||||
#define BEEPER_INVERTED
|
||||
#define MAX7456_SPI_INSTANCE SPI3
|
||||
#define FLASH_SPI_INSTANCE SPI2
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW180_DEG
|
||||
#define GYRO_1_ALIGN_YAW 1800
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_2_SPI_INSTANCE SPI1
|
||||
#define GYRO_2_ALIGN CW180_DEG
|
||||
#define GYRO_2_ALIGN_YAW 1800
|
|
@ -1,140 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32H743
|
||||
|
||||
#define BOARD_NAME BETAFPVH743
|
||||
#define MANUFACTURER_ID BEFH
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_ICM42688P
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_ICM42688P
|
||||
#define USE_BARO_BMP280
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_M25P16
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PB3
|
||||
#define MOTOR1_PIN PD12
|
||||
#define MOTOR2_PIN PD13
|
||||
#define MOTOR3_PIN PB0
|
||||
#define MOTOR4_PIN PB1
|
||||
#define MOTOR5_PIN PC8
|
||||
#define MOTOR6_PIN PC9
|
||||
#define MOTOR7_PIN PB4
|
||||
#define MOTOR8_PIN PB5
|
||||
#define RX_PPM_PIN PA3
|
||||
#define LED_STRIP_PIN PA8
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PB10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART7_TX_PIN PE8
|
||||
#define UART8_TX_PIN PE1
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART3_RX_PIN PB11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART6_RX_PIN PC7
|
||||
#define UART7_RX_PIN PE7
|
||||
#define UART8_RX_PIN PE0
|
||||
#define I2C1_SCL_PIN PB8
|
||||
#define I2C2_SCL_PIN PB10
|
||||
#define I2C1_SDA_PIN PB9
|
||||
#define I2C2_SDA_PIN PB11
|
||||
#define LED0_PIN PE2
|
||||
#define LED1_PIN PE3
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PC10
|
||||
#define SPI4_SCK_PIN PE12
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PC11
|
||||
#define SPI4_SDI_PIN PE13
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PC12
|
||||
#define SPI4_SDO_PIN PE14
|
||||
#define CAMERA_CONTROL_PIN PE5
|
||||
#define ADC_VBAT_PIN PC3
|
||||
#define ADC_RSSI_PIN PC5
|
||||
#define ADC_CURR_PIN PC2
|
||||
#define ADC_EXTERNAL1_PIN PC1
|
||||
#define PINIO1_PIN PD9
|
||||
#define PINIO2_PIN PD11
|
||||
#define FLASH_CS_PIN PB12
|
||||
#define MAX7456_SPI_CS_PIN PA15
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define GYRO_2_EXTI_PIN PE15
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
#define GYRO_2_CS_PIN PE11
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA8 , 1, 14) \
|
||||
TIMER_PIN_MAP( 1, PA3 , 2, 0) \
|
||||
TIMER_PIN_MAP( 2, PE5 , 1, 8) \
|
||||
TIMER_PIN_MAP( 3, PD12, 1, 6) \
|
||||
TIMER_PIN_MAP( 4, PD13, 1, 7) \
|
||||
TIMER_PIN_MAP( 5, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 6, PB1 , 2, 1) \
|
||||
TIMER_PIN_MAP( 7, PC8 , 2, 2) \
|
||||
TIMER_PIN_MAP( 8, PC9 , 2, 3) \
|
||||
TIMER_PIN_MAP( 9, PB4 , 1, 4) \
|
||||
TIMER_PIN_MAP(10, PB5 , 1, 5) \
|
||||
TIMER_PIN_MAP(11, PD14, 1, 11)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
#define ADC2_DMA_OPT 9
|
||||
#define ADC3_DMA_OPT 10
|
||||
#define TIMUP1_DMA_OPT 0
|
||||
#define TIMUP3_DMA_OPT 0
|
||||
#define TIMUP4_DMA_OPT 0
|
||||
#define TIMUP5_DMA_OPT 0
|
||||
#define TIMUP8_DMA_OPT 0
|
||||
#define TIMUP0_DMA_OPT 0
|
||||
|
||||
#define MAG_I2C_INSTANCE (I2CDEV_2)
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_1)
|
||||
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 350
|
||||
#define BEEPER_INVERTED
|
||||
#define MAX7456_SPI_INSTANCE SPI3
|
||||
#define PINIO1_BOX 40
|
||||
#define PINIO2_BOX 41
|
||||
#define FLASH_SPI_INSTANCE SPI2
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW180_DEG
|
||||
#define GYRO_1_ALIGN_YAW 1800
|
||||
#define GYRO_2_SPI_INSTANCE SPI4
|
||||
#define GYRO_2_ALIGN CW180_DEG
|
||||
#define GYRO_2_ALIGN_YAW 1800
|
|
@ -1,109 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F7X2
|
||||
|
||||
#define BOARD_NAME BLADE_F7
|
||||
#define MANUFACTURER_ID RUSH
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_GYRO_SPI_ICM42688P
|
||||
#define USE_ACC_SPI_ICM42688P
|
||||
#define USE_BARO
|
||||
#define USE_BARO_DPS310
|
||||
#define USE_BARO_BMP280
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_W25Q128FV
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PB2
|
||||
#define MOTOR1_PIN PC8
|
||||
#define MOTOR2_PIN PC9
|
||||
#define MOTOR3_PIN PB1
|
||||
#define MOTOR4_PIN PB0
|
||||
#define MOTOR5_PIN PC7
|
||||
#define MOTOR6_PIN PC6
|
||||
#define MOTOR7_PIN PB6
|
||||
#define MOTOR8_PIN PB7
|
||||
#define CAMERA_CONTROL_PIN PA8
|
||||
#define LED_STRIP_PIN PA15
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PC10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART5_TX_PIN PC12
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART3_RX_PIN PC11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART5_RX_PIN PD2
|
||||
#define I2C1_SCL_PIN PB8
|
||||
#define I2C1_SDA_PIN PB9
|
||||
#define LED0_PIN PB10
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define ADC_VBAT_PIN PC0
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define FLASH_CS_PIN PB12
|
||||
#define MAX7456_SPI_CS_PIN PB11
|
||||
#define GYRO_1_EXTI_PIN PA4
|
||||
#define GYRO_1_CS_PIN PC4
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA15, 1, 0) \
|
||||
TIMER_PIN_MAP( 1, PA8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 2, PC8 , 2, 0) \
|
||||
TIMER_PIN_MAP( 3, PC9 , 2, 0) \
|
||||
TIMER_PIN_MAP( 4, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 5, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 6, PC7 , 2, 0) \
|
||||
TIMER_PIN_MAP( 7, PC6 , 2, 0) \
|
||||
TIMER_PIN_MAP( 8, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 9, PB7 , 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 179
|
||||
#define BEEPER_INVERTED
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define FLASH_SPI_INSTANCE SPI2
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW270_DEG
|
||||
#define GYRO_1_ALIGN_YAW 2700
|
|
@ -1,106 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F7X2
|
||||
|
||||
#define BOARD_NAME BLADE_F7_HD
|
||||
#define MANUFACTURER_ID RUSH
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_GYRO_SPI_ICM42688P
|
||||
#define USE_ACC_SPI_ICM42688P
|
||||
#define USE_BARO_DPS310
|
||||
#define USE_BARO_BMP280
|
||||
#define USE_BARO_QMP6988
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_W25Q128FV
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PB2
|
||||
#define MOTOR1_PIN PC8
|
||||
#define MOTOR2_PIN PC9
|
||||
#define MOTOR3_PIN PB1
|
||||
#define MOTOR4_PIN PB0
|
||||
#define MOTOR5_PIN PC7
|
||||
#define MOTOR6_PIN PC6
|
||||
#define MOTOR7_PIN PB6
|
||||
#define MOTOR8_PIN PB7
|
||||
#define LED_STRIP_PIN PA15
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PC10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART5_TX_PIN PC12
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART3_RX_PIN PC11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART5_RX_PIN PD2
|
||||
#define I2C1_SCL_PIN PB8
|
||||
#define I2C1_SDA_PIN PB9
|
||||
#define LED0_PIN PB10
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define ADC_VBAT_PIN PC0
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define FLASH_CS_PIN PB12
|
||||
#define GYRO_1_EXTI_PIN PA4
|
||||
#define GYRO_1_CS_PIN PC4
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA15, 1, 0) \
|
||||
TIMER_PIN_MAP( 1, PA8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 2, PC8 , 2, 0) \
|
||||
TIMER_PIN_MAP( 3, PC9 , 2, 0) \
|
||||
TIMER_PIN_MAP( 4, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 5, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 6, PC7 , 2, 0) \
|
||||
TIMER_PIN_MAP( 7, PC6 , 2, 0) \
|
||||
TIMER_PIN_MAP( 8, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 9, PB7 , 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_1)
|
||||
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 179
|
||||
#define BEEPER_INVERTED
|
||||
#define FLASH_SPI_INSTANCE SPI2
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW270_DEG
|
||||
#define GYRO_1_ALIGN_YAW 2700
|
|
@ -1,101 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F405
|
||||
|
||||
#define BOARD_NAME BLUEJAYF4
|
||||
#define MANUFACTURER_ID BKMN
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_W25P16
|
||||
|
||||
#define BEEPER_PIN PC1
|
||||
#define MOTOR1_PIN PA0
|
||||
#define MOTOR2_PIN PA1
|
||||
#define MOTOR3_PIN PA2
|
||||
#define MOTOR4_PIN PA3
|
||||
#define MOTOR5_PIN PB0
|
||||
#define MOTOR6_PIN PB1
|
||||
#define RX_PPM_PIN PC7
|
||||
#define LED_STRIP_PIN PB0
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART3_TX_PIN PB10
|
||||
#define UART6_TX_PIN PC6
|
||||
#define SOFTSERIAL1_TX_PIN PB3
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART3_RX_PIN PB11
|
||||
#define UART6_RX_PIN PC7
|
||||
#define INVERTER_PIN_UART6 PB15
|
||||
#define I2C1_SCL_PIN PB8
|
||||
#define I2C1_SDA_PIN PB9
|
||||
#define LED0_PIN PB6
|
||||
#define LED1_PIN PB5
|
||||
#define LED2_PIN PB4
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI3_SCK_PIN PC10
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI3_SDI_PIN PC11
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI3_SDO_PIN PC12
|
||||
#define ESCSERIAL_PIN PC7
|
||||
#define ADC_VBAT_PIN PC3
|
||||
#define ADC_CURR_PIN PC2
|
||||
#define SDCARD_SPI_CS_PIN PA15
|
||||
#define SDCARD_DETECT_PIN PD2
|
||||
#define FLASH_CS_PIN PB7
|
||||
#define GYRO_1_EXTI_PIN PC5
|
||||
#define GYRO_1_CS_PIN PC4
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PC7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 1, PA0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 2, PA1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 3, PA2 , 2, 0) \
|
||||
TIMER_PIN_MAP( 4, PA3 , 2, 1) \
|
||||
TIMER_PIN_MAP( 5, PB0 , 1, 0) \
|
||||
TIMER_PIN_MAP( 6, PB1 , 3, 0) \
|
||||
TIMER_PIN_MAP( 7, PB3 , 1, 0)
|
||||
|
||||
|
||||
|
||||
#define SPI3_TX_DMA_OPT 0
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define MAG_I2C_INSTANCE (I2CDEV_1)
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_1)
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define BEEPER_INVERTED
|
||||
#define SDCARD_DETECT_INVERTED
|
||||
#define USE_SDCARD_SPI
|
||||
#define SDCARD_SPI_INSTANCE SPI3
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
#define DASHBOARD_I2C_INSTANCE (I2CDEV_1)
|
||||
#define FLASH_SPI_INSTANCE SPI3
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
|
@ -1,108 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F405
|
||||
|
||||
#define BOARD_NAME CLRACINGF4
|
||||
#define MANUFACTURER_ID CLRA
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_MAX7456
|
||||
#define USE_SDCARD
|
||||
|
||||
#define BEEPER_PIN PB4
|
||||
#define MOTOR1_PIN PB0
|
||||
#define MOTOR2_PIN PB1
|
||||
#define MOTOR3_PIN PA3
|
||||
#define MOTOR4_PIN PA2
|
||||
#define MOTOR5_PIN PB8
|
||||
#define LED_STRIP_PIN PB8
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART3_TX_PIN PB10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART3_RX_PIN PB11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART6_RX_PIN PC7
|
||||
#define INVERTER_PIN_UART1 PC0
|
||||
#define LED0_PIN PB5
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PC10
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PC11
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PC12
|
||||
#define CAMERA_CONTROL_PIN PB9
|
||||
#define ADC_VBAT_PIN PC2
|
||||
#define ADC_RSSI_PIN PC3
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define SDCARD_SPI_CS_PIN PB12
|
||||
#define SDCARD_DETECT_PIN PB7
|
||||
#define PINIO1_PIN PA14
|
||||
#define FLASH_CS_PIN PB3
|
||||
#define MAX7456_SPI_CS_PIN PA15
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
#define USB_DETECT_PIN PC5
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PB9 , 2, -1) \
|
||||
TIMER_PIN_MAP( 1, PB0 , 1, 0) \
|
||||
TIMER_PIN_MAP( 2, PB1 , 3, 0) \
|
||||
TIMER_PIN_MAP( 3, PA3 , 1, 1) \
|
||||
TIMER_PIN_MAP( 4, PA2 , 1, 0) \
|
||||
TIMER_PIN_MAP( 5, PB4 , 1, 0) \
|
||||
TIMER_PIN_MAP( 6, PB8 , 1, 0)
|
||||
|
||||
|
||||
|
||||
#define SPI2_TX_DMA_OPT 0
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD
|
||||
//TODO #define MOTOR_PWM_PROTOCOL DSHOT600
|
||||
#define PINIO1_BOX 40
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 250
|
||||
#define BEEPER_INVERTED
|
||||
#define BEEPER_PWM_HZ 3800
|
||||
#define USE_SDCARD_SPI
|
||||
#define SDCARD_SPI_INSTANCE SPI2
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
#define MAX7456_SPI_INSTANCE SPI3
|
||||
#define FLASH_SPI_INSTANCE SPI3
|
||||
#define DEFAULT_PID_PROCESS_DENOM 1
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW0_DEG
|
||||
#define GYRO_2_SPI_INSTANCE SPI1
|
|
@ -1,133 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F7X2
|
||||
|
||||
#define BOARD_NAME CLRACINGF7
|
||||
#define MANUFACTURER_ID CLRA
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_W25Q128FV
|
||||
#define USE_FLASH_W25N01G
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PB4
|
||||
#define MOTOR1_PIN PB6
|
||||
#define MOTOR2_PIN PB7
|
||||
#define MOTOR3_PIN PB8
|
||||
#define MOTOR4_PIN PB9
|
||||
#define MOTOR5_PIN PA1
|
||||
#define MOTOR6_PIN PC8
|
||||
#define MOTOR7_PIN PC9
|
||||
#define MOTOR8_PIN PB1
|
||||
#define LED_STRIP_PIN PB1
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PB10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART5_TX_PIN PC12
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART3_RX_PIN PB11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART5_RX_PIN PD2
|
||||
#define UART6_RX_PIN PC7
|
||||
#define LED0_PIN PB0
|
||||
#define SPEKTRUM_RX_BIND_PIN PB2
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PC10
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PC11
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define CAMERA_CONTROL_PIN PB3
|
||||
#define ADC_VBAT_PIN PC2
|
||||
#define ADC_RSSI_PIN PC3
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define SDCARD_SPI_CS_PIN PB12
|
||||
#define SDCARD_DETECT_PIN PC3
|
||||
#define PINIO1_PIN PA14
|
||||
#define FLASH_CS_PIN PB12
|
||||
#define MAX7456_SPI_CS_PIN PA15
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define GYRO_2_EXTI_PIN PC14
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
#define GYRO_2_CS_PIN PC13
|
||||
#define USB_DETECT_PIN PC5
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA3 , 3, -1) \
|
||||
TIMER_PIN_MAP( 1, PB0 , 1, 0) \
|
||||
TIMER_PIN_MAP( 2, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 3, PA1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 4, PA0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 5, PC6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 6, PC7 , 2, 0) \
|
||||
TIMER_PIN_MAP( 7, PB5 , 1, 0) \
|
||||
TIMER_PIN_MAP( 8, PB9 , 1, -1) \
|
||||
TIMER_PIN_MAP( 9, PB8 , 1, 0) \
|
||||
TIMER_PIN_MAP(10, PB3 , 1, 0) \
|
||||
TIMER_PIN_MAP(11, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP(12, PB7 , 1, 0) \
|
||||
TIMER_PIN_MAP(13, PC8 , 2, 0) \
|
||||
TIMER_PIN_MAP(14, PC9 , 2, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define MAG_I2C_INSTANCE (I2CDEV_2)
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_1)
|
||||
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
//TODO #define MOTOR_PWM_PROTOCOL DSHOT600
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 250
|
||||
#define BEEPER_INVERTED
|
||||
#define DEFAULT_PID_PROCESS_DENOM 1
|
||||
#define SDCARD_DETECT_INVERTED
|
||||
#define USE_SDCARD_SPI
|
||||
#define SDCARD_SPI_INSTANCE SPI2
|
||||
#define MAX7456_SPI_INSTANCE SPI3
|
||||
#define FLASH_SPI_INSTANCE SPI2
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_2_SPI_INSTANCE SPI1
|
||||
#define GYRO_2_ALIGN CW90_DEG
|
||||
#define GYRO_2_ALIGN_YAW 900
|
||||
#define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH
|
||||
#define PINIO1_BOX 40
|
||||
//TODO #define MCO2_ON_PC9 ON
|
|
@ -1,114 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F405
|
||||
|
||||
#define BOARD_NAME COLIBRI
|
||||
#define MANUFACTURER_ID TEBS
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_BARO_MS5611
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_M25P16
|
||||
|
||||
#define BEEPER_PIN PC5
|
||||
#define MOTOR1_PIN PB0
|
||||
#define MOTOR2_PIN PB4
|
||||
#define MOTOR3_PIN PB1
|
||||
#define MOTOR4_PIN PB15
|
||||
#define MOTOR5_PIN PB5
|
||||
#define MOTOR6_PIN PB14
|
||||
#define MOTOR7_PIN PB8
|
||||
#define MOTOR8_PIN PB9
|
||||
#define RX_PPM_PIN PA10
|
||||
#define RX_PWM1_PIN PA10
|
||||
#define RX_PWM2_PIN PC6
|
||||
#define RX_PWM3_PIN PC7
|
||||
#define RX_PWM4_PIN PC8
|
||||
#define RX_PWM5_PIN PA15
|
||||
#define RX_PWM6_PIN PB3
|
||||
#define RX_PWM7_PIN PA0
|
||||
#define RX_PWM8_PIN PA1
|
||||
#define LED_STRIP_PIN PB7
|
||||
#define UART1_TX_PIN PB6
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PB10
|
||||
#define UART1_RX_PIN PB7
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART3_RX_PIN PB11
|
||||
#define INVERTER_PIN_UART2 PB2
|
||||
#define I2C3_SCL_PIN PA8
|
||||
#define I2C3_SDA_PIN PC9
|
||||
#define LED0_PIN PC14
|
||||
#define LED1_PIN PC13
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PC2
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PC3
|
||||
#define ESCSERIAL_PIN PA10
|
||||
#define COMPASS_EXTI_PIN PC1
|
||||
#define FLASH_CS_PIN PB12
|
||||
#define GYRO_1_EXTI_PIN PC0
|
||||
#define GYRO_1_CS_PIN PC4
|
||||
#define USB_DETECT_PIN PA9
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA10, 1, 0) \
|
||||
TIMER_PIN_MAP( 1, PC6 , 2, 0) \
|
||||
TIMER_PIN_MAP( 2, PC7 , 2, 0) \
|
||||
TIMER_PIN_MAP( 3, PC8 , 2, 0) \
|
||||
TIMER_PIN_MAP( 4, PA15, 1, 0) \
|
||||
TIMER_PIN_MAP( 5, PB3 , 1, 0) \
|
||||
TIMER_PIN_MAP( 6, PA0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 7, PA1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 8, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 9, PB4 , 1, 0) \
|
||||
TIMER_PIN_MAP(10, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP(11, PB15, 3, -1) \
|
||||
TIMER_PIN_MAP(12, PB5 , 1, 0) \
|
||||
TIMER_PIN_MAP(13, PB14, 3, -1) \
|
||||
TIMER_PIN_MAP(14, PB8 , 2, -1) \
|
||||
TIMER_PIN_MAP(15, PB9 , 2, -1) \
|
||||
TIMER_PIN_MAP(16, PB7 , 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define MAG_I2C_INSTANCE (I2CDEV_3)
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_3)
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define SYSTEM_HSE_MHZ 16
|
||||
#define DASHBOARD_I2C_INSTANCE (I2CDEV_3)
|
||||
#define FLASH_SPI_INSTANCE SPI2
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW270_DEG_FLIP
|
||||
#define GYRO_1_ALIGN_PITCH 1800
|
||||
#define GYRO_1_ALIGN_YAW 2700
|
|
@ -1,100 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F411
|
||||
|
||||
#define BOARD_NAME CRAZYBEEF4DX
|
||||
#define MANUFACTURER_ID HAMO
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_ACC_SPI_ICM20689
|
||||
#define USE_ACC_SPI_ICM42688P
|
||||
#define USE_ACCGYRO_BMI270
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_GYRO_SPI_ICM20689
|
||||
#define USE_GYRO_SPI_ICM42688P
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PC15
|
||||
#define MOTOR1_PIN PB10
|
||||
#define MOTOR2_PIN PB6
|
||||
#define MOTOR3_PIN PB7
|
||||
#define MOTOR4_PIN PB8
|
||||
#define RX_PPM_PIN PA3
|
||||
#define RX_PWM1_PIN PA2
|
||||
#define RX_PWM2_PIN PA9
|
||||
#define RX_PWM3_PIN PA10
|
||||
#define LED_STRIP_PIN PA0
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define LED0_PIN PC13
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define ADC_VBAT_PIN PB0
|
||||
#define ADC_CURR_PIN PB1
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define GYRO_1_EXTI_PIN PA1
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA3 , 3, -1) \
|
||||
TIMER_PIN_MAP( 1, PB10, 1, 0) \
|
||||
TIMER_PIN_MAP( 2, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 3, PB7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 4, PB8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 5, PA0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 6, PA2 , 3, -1) \
|
||||
TIMER_PIN_MAP( 7, PA9 , 1, 0) \
|
||||
TIMER_PIN_MAP( 8, PA10, 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_AUTO
|
||||
#define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_OFF
|
||||
#define SERIALRX_PROVIDER SPEK2048
|
||||
//TODO #define MOTOR_PWM_PROTOCOL DSHOT600
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 179
|
||||
#define BEEPER_INVERTED
|
||||
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW90_DEG
|
|
@ -1,99 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F411
|
||||
|
||||
#define BOARD_NAME CRAZYBEEF4DXS
|
||||
#define MANUFACTURER_ID HAMO
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PC15
|
||||
#define MOTOR1_PIN PB10
|
||||
#define MOTOR2_PIN PB6
|
||||
#define MOTOR3_PIN PB7
|
||||
#define MOTOR4_PIN PB8
|
||||
#define RX_PPM_PIN PA3
|
||||
#define RX_PWM1_PIN PA2
|
||||
#define RX_PWM2_PIN PA9
|
||||
#define RX_PWM3_PIN PA10
|
||||
#define LED_STRIP_PIN PA0
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define LED0_PIN PC13
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define ADC_VBAT_PIN PB0
|
||||
#define ADC_CURR_PIN PB1
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define RX_SPI_CS_PIN PA15
|
||||
#define RX_SPI_EXTI_PIN PC14
|
||||
#define RX_SPI_BIND_PIN PB2
|
||||
#define RX_SPI_LED_PIN PB9
|
||||
#define GYRO_1_EXTI_PIN PA1
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA3 , 3, -1) \
|
||||
TIMER_PIN_MAP( 1, PB10, 1, 0) \
|
||||
TIMER_PIN_MAP( 2, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 3, PB7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 4, PB8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 5, PA0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 6, PA2 , 3, -1) \
|
||||
TIMER_PIN_MAP( 7, PA9 , 1, 0) \
|
||||
TIMER_PIN_MAP( 8, PA10, 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
//TODO #define RX_SPI_PROTOCOL SPEKTRUM
|
||||
#define RX_SPI_INSTANCE SPI3
|
||||
#define RX_SPI_LED_INVERTED
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_AUTO
|
||||
#define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_OFF
|
||||
//TODO #define MOTOR_PWM_PROTOCOL DSHOT300
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 179
|
||||
#define BEEPER_INVERTED
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW90_DEG
|
||||
#define GYRO_1_ALIGN_YAW 900
|
|
@ -1,103 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F411
|
||||
|
||||
#define BOARD_NAME CRAZYBEEF4FR
|
||||
#define MANUFACTURER_ID HAMO
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_ACC_SPI_ICM20689
|
||||
#define USE_GYRO_SPI_ICM20689
|
||||
#define USE_ACCGYRO_BMI270
|
||||
#define USE_ACC_SPI_ICM42688P
|
||||
#define USE_GYRO_SPI_ICM42688P
|
||||
#define USE_RX_CC2500
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PC15
|
||||
#define MOTOR1_PIN PB10
|
||||
#define MOTOR2_PIN PB6
|
||||
#define MOTOR3_PIN PB7
|
||||
#define MOTOR4_PIN PB8
|
||||
#define RX_PPM_PIN PA3
|
||||
#define RX_PWM1_PIN PA2
|
||||
#define RX_PWM2_PIN PA9
|
||||
#define RX_PWM3_PIN PA10
|
||||
#define LED_STRIP_PIN PA0
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define LED0_PIN PC13
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define ADC_VBAT_PIN PB0
|
||||
#define ADC_CURR_PIN PB1
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define RX_SPI_CS_PIN PA15
|
||||
#define RX_SPI_EXTI_PIN PC14
|
||||
#define RX_SPI_BIND_PIN PB2
|
||||
#define RX_SPI_LED_PIN PB9
|
||||
#define GYRO_1_EXTI_PIN PA1
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA3 , 3, -1) \
|
||||
TIMER_PIN_MAP( 1, PB10, 1, 0) \
|
||||
TIMER_PIN_MAP( 2, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 3, PB7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 4, PB8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 5, PA0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 6, PA2 , 3, -1) \
|
||||
TIMER_PIN_MAP( 7, PA9 , 1, 0) \
|
||||
TIMER_PIN_MAP( 8, PA10, 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_AUTO
|
||||
#define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_OFF
|
||||
//TODO #define RX_SPI_PROTOCOL FRSKY_X
|
||||
#define RX_SPI_INSTANCE SPI3
|
||||
//TODO #define MOTOR_PWM_PROTOCOL DSHOT600
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 179
|
||||
#define BEEPER_INVERTED
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW90_DEG
|
|
@ -1,100 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F411
|
||||
|
||||
#define BOARD_NAME CRAZYBEEF4FS
|
||||
#define MANUFACTURER_ID HAMO
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_ACC_SPI_ICM42688P
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_GYRO_SPI_ICM42688P
|
||||
#define USE_RX_CC2500
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PC15
|
||||
#define MOTOR1_PIN PB10
|
||||
#define MOTOR2_PIN PB6
|
||||
#define MOTOR3_PIN PB7
|
||||
#define MOTOR4_PIN PB8
|
||||
#define RX_PPM_PIN PA3
|
||||
#define RX_PWM1_PIN PA2
|
||||
#define RX_PWM2_PIN PA9
|
||||
#define RX_PWM3_PIN PA10
|
||||
#define LED_STRIP_PIN PA0
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define LED0_PIN PC13
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define ADC_VBAT_PIN PB0
|
||||
#define ADC_CURR_PIN PB1
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define RX_SPI_CS_PIN PA15
|
||||
#define RX_SPI_EXTI_PIN PA14
|
||||
#define RX_SPI_BIND_PIN PB2
|
||||
#define RX_SPI_LED_PIN PB9
|
||||
#define GYRO_1_EXTI_PIN PA1
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA3 , 3, -1) \
|
||||
TIMER_PIN_MAP( 1, PB10, 1, 0) \
|
||||
TIMER_PIN_MAP( 2, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 3, PB7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 4, PB8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 5, PA0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 6, PA2 , 3, -1) \
|
||||
TIMER_PIN_MAP( 7, PA9 , 1, 0) \
|
||||
TIMER_PIN_MAP( 8, PA10, 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_AUTO
|
||||
#define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_OFF
|
||||
//TODO #define RX_SPI_PROTOCOL FLYSKY_2A
|
||||
#define RX_SPI_INSTANCE SPI3
|
||||
//TODO #define MOTOR_PWM_PROTOCOL DSHOT300
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 179
|
||||
#define BEEPER_INVERTED
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW90_DEG
|
|
@ -1,125 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F411
|
||||
|
||||
#define BOARD_NAME CRAZYBEEF4SX1280
|
||||
#define MANUFACTURER_ID HAMO
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_ICM20689
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_ICM20689
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_ACCGYRO_BMI270
|
||||
#define USE_GYRO_SPI_ICM42688P
|
||||
#define USE_ACC_SPI_ICM42688P
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_W25Q128FV
|
||||
#define USE_MAX7456
|
||||
#define USE_RX_SPI
|
||||
#define USE_RX_EXPRESSLRS
|
||||
#define USE_RX_EXPRESSLRS_TELEMETRY
|
||||
#define USE_RX_SX1280
|
||||
#define RX_CHANNELS_AETR
|
||||
#define RX_SPI_DEFAULT_PROTOCOL RX_SPI_EXPRESSLRS
|
||||
#define DEFAULT_RX_FEATURE FEATURE_RX_SPI
|
||||
#define RX_SPI_PROTOCOL EXPRESSLRS
|
||||
#define RX_EXPRESSLRS_TIMER_INSTANCE TIM3
|
||||
#define RX_EXPRESSLRS_SPI_RESET_PIN PA8
|
||||
#define RX_EXPRESSLRS_SPI_BUSY_PIN PA13
|
||||
#define RX_SPI_CS PA15
|
||||
#define RX_SPI_EXTI PC14
|
||||
#define RX_SPI_BIND PB2
|
||||
#define RX_SPI_LED PB9
|
||||
|
||||
#define BEEPER_PIN PC15
|
||||
#define MOTOR1_PIN PB10
|
||||
#define MOTOR2_PIN PB6
|
||||
#define MOTOR3_PIN PB7
|
||||
#define MOTOR4_PIN PB8
|
||||
#define RX_PPM_PIN PA3
|
||||
#define RX_PWM1_PIN PA2
|
||||
#define RX_PWM2_PIN PA9
|
||||
#define RX_PWM3_PIN PA10
|
||||
#define LED_STRIP_PIN PA0
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define LED0_PIN PC13
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define ADC_VBAT_PIN PB0
|
||||
#define ADC_CURR_PIN PB1
|
||||
#define FLASH_CS_PIN PA14
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define RX_SPI_CS_PIN PA15
|
||||
#define RX_SPI_EXTI_PIN PC14
|
||||
#define RX_SPI_BIND_PIN PB2
|
||||
#define RX_SPI_LED_PIN PB9
|
||||
#define RX_SPI_EXPRESSLRS_RESET_PIN PA8
|
||||
#define RX_SPI_EXPRESSLRS_BUSY_PIN PA13
|
||||
#define GYRO_1_EXTI_PIN PA1
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA3 , 3, -1) \
|
||||
TIMER_PIN_MAP( 1, PB10, 1, 0) \
|
||||
TIMER_PIN_MAP( 2, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 3, PB7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 4, PB8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 5, PA0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 6, PA2 , 3, -1) \
|
||||
TIMER_PIN_MAP( 7, PA9 , 1, 0) \
|
||||
TIMER_PIN_MAP( 8, PA10, 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 0
|
||||
|
||||
#define RX_SPI_INSTANCE SPI3
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_AUTO
|
||||
#define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_OFF
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 1175
|
||||
#define BEEPER_INVERTED
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define PINIO1_BOX 40
|
||||
#define PINIO2_BOX 41
|
||||
#define FLASH_SPI_INSTANCE SPI2
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW90_DEG
|
||||
#define GYRO_1_ALIGN_YAW 900
|
|
@ -1,109 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F405
|
||||
|
||||
#define BOARD_NAME CYCLONEF405_PRO
|
||||
#define MANUFACTURER_ID CYCL
|
||||
|
||||
#define BEEPER_PIN PC13
|
||||
#define MOTOR1_PIN PC8
|
||||
#define MOTOR2_PIN PC9
|
||||
#define MOTOR3_PIN PA8
|
||||
#define MOTOR4_PIN PA9
|
||||
#define MOTOR5_PIN PB0
|
||||
#define MOTOR6_PIN PB1
|
||||
#define MOTOR7_PIN PA10
|
||||
#define MOTOR8_PIN PB4
|
||||
#define LED_STRIP_PIN PB3
|
||||
#define UART1_TX_PIN PB6
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PB10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART5_TX_PIN PC12
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART1_RX_PIN PB7
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART3_RX_PIN PB11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART5_RX_PIN PD2
|
||||
#define UART6_RX_PIN PC7
|
||||
#define INVERTER_PIN_UART1 PC0
|
||||
#define I2C1_SCL_PIN PB8
|
||||
#define I2C1_SDA_PIN PB9
|
||||
#define LED0_PIN PC15
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PC10
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PC11
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define ADC_VBAT_PIN PC1
|
||||
#define ADC_RSSI_PIN PC2
|
||||
#define ADC_CURR_PIN PC3
|
||||
#define PINIO1_PIN PB0
|
||||
#define FLASH_CS_PIN PA15
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PB9 , 2, -1) \
|
||||
TIMER_PIN_MAP( 1, PA9 , 1, 0) \
|
||||
TIMER_PIN_MAP( 2, PA8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 3, PC9 , 2, 0) \
|
||||
TIMER_PIN_MAP( 4, PC8 , 2, 0) \
|
||||
TIMER_PIN_MAP( 5, PB8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 6, PB3 , 1, 0) \
|
||||
TIMER_PIN_MAP( 7, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 8, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 9, PA10, 1, 0) \
|
||||
TIMER_PIN_MAP(10, PB4 , 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC3_DMA_OPT 0
|
||||
|
||||
#define MAG_I2C_INSTANCE (I2CDEV_1)
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_1)
|
||||
|
||||
#define USE_ADC
|
||||
#define ADC_INSTANCE ADC3
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define BEEPER_INVERTED
|
||||
//TODO #define OSD_DISPLAYPORT_DEVICE MAX7456
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define PINIO1_CONFIG 129
|
||||
#define PINIO1_BOX 0
|
||||
#define FLASH_SPI_INSTANCE SPI3
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW90_DEG
|
||||
#define GYRO_1_ALIGN_YAW 900
|
|
@ -1,118 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F7X2
|
||||
|
||||
#define BOARD_NAME CYCLONEF722_PRO
|
||||
#define MANUFACTURER_ID CYCL
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_BARO_BMP280
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_W25P16
|
||||
#define USE_FLASH_W25Q128FV
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PC13
|
||||
#define MOTOR1_PIN PC8
|
||||
#define MOTOR2_PIN PC9
|
||||
#define MOTOR3_PIN PA8
|
||||
#define MOTOR4_PIN PA9
|
||||
#define MOTOR5_PIN PB0
|
||||
#define MOTOR6_PIN PB1
|
||||
#define MOTOR7_PIN PA10
|
||||
#define MOTOR8_PIN PB4
|
||||
#define LED_STRIP_PIN PB3
|
||||
#define UART1_TX_PIN PB6
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PB10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART5_TX_PIN PC12
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART1_RX_PIN PB7
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART3_RX_PIN PB11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART5_RX_PIN PD2
|
||||
#define UART6_RX_PIN PC7
|
||||
#define I2C1_SCL_PIN PB8
|
||||
#define I2C1_SDA_PIN PB9
|
||||
#define LED0_PIN PC15
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PC10
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PC11
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define ADC_VBAT_PIN PC1
|
||||
#define ADC_RSSI_PIN PC2
|
||||
#define ADC_CURR_PIN PC3
|
||||
#define PINIO1_PIN PB0
|
||||
#define FLASH_CS_PIN PA15
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PB9 , 2, -1) \
|
||||
TIMER_PIN_MAP( 1, PA9 , 1, 0) \
|
||||
TIMER_PIN_MAP( 2, PA8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 3, PC9 , 2, 0) \
|
||||
TIMER_PIN_MAP( 4, PC8 , 2, 0) \
|
||||
TIMER_PIN_MAP( 5, PB8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 6, PB3 , 1, 0) \
|
||||
TIMER_PIN_MAP( 7, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 8, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 9, PA10, 1, 0) \
|
||||
TIMER_PIN_MAP(10, PB4 , 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC3_DMA_OPT 0
|
||||
|
||||
#define MAG_I2C_INSTANCE (I2CDEV_1)
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_1)
|
||||
|
||||
#define USE_ADC
|
||||
#define ADC_INSTANCE ADC3
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define BEEPER_INVERTED
|
||||
//TODO #define OSD_DISPLAYPORT_DEVICE MAX7456
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define PINIO1_CONFIG 129
|
||||
#define PINIO1_BOX 0
|
||||
#define FLASH_SPI_INSTANCE SPI3
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW90_DEG
|
||||
#define GYRO_1_ALIGN_YAW 900
|
|
@ -1,116 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F405
|
||||
|
||||
#define BOARD_NAME DAKEFPVF405
|
||||
#define MANUFACTURER_ID DAKE
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_ICM42688P
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_ICM42688P
|
||||
#define USE_ACCGYRO_BMI270
|
||||
#define USE_BARO_SPI_BMP280
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_M25P16
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PC3
|
||||
#define MOTOR1_PIN PC8
|
||||
#define MOTOR2_PIN PC9
|
||||
#define MOTOR3_PIN PB6
|
||||
#define MOTOR4_PIN PB7
|
||||
#define MOTOR5_PIN PB0
|
||||
#define MOTOR6_PIN PB1
|
||||
#define LED_STRIP_PIN PB3
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PB10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART5_TX_PIN PC12
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART3_RX_PIN PB11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART5_RX_PIN PD2
|
||||
#define UART6_RX_PIN PC7
|
||||
#define I2C1_SCL_PIN PB8
|
||||
#define I2C1_SDA_PIN PB9
|
||||
#define LED0_PIN PC15
|
||||
#define LED1_PIN PC14
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PC10
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PC11
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define ADC_VBAT_PIN PC1
|
||||
#define ADC_RSSI_PIN PC2
|
||||
#define ADC_CURR_PIN PC0
|
||||
#define BARO_CS_PIN PC13
|
||||
#define PINIO1_PIN PC5
|
||||
#define FLASH_CS_PIN PA15
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 1, PA1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 2, PA9 , 1, -1) \
|
||||
TIMER_PIN_MAP( 3, PA10, 1, -1) \
|
||||
TIMER_PIN_MAP( 4, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 5, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 6, PB3 , 1, 0) \
|
||||
TIMER_PIN_MAP( 7, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 8, PB7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 9, PC8 , 2, 0) \
|
||||
TIMER_PIN_MAP(10, PC9 , 2, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC2_DMA_OPT 1
|
||||
|
||||
#define USE_BARO
|
||||
#define BARO_SPI_INSTANCE SPI2
|
||||
|
||||
#define USE_ADC
|
||||
#define ADC_INSTANCE ADC2
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_OFF
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define BEEPER_INVERTED
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define PINIO1_CONFIG 129
|
||||
#define PINIO1_BOX 40
|
||||
#define FLASH_SPI_INSTANCE SPI3
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW270_DEG
|
||||
#define GYRO_1_ALIGN_YAW 2700
|
|
@ -1,103 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F411
|
||||
|
||||
#define BOARD_NAME DAKEFPVF411
|
||||
#define MANUFACTURER_ID DAKE
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_ICM42688P
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_ICM42688P
|
||||
#define USE_ACCGYRO_BMI270
|
||||
#define USE_BARO_SPI_BMP280
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_M25P16
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PA8
|
||||
#define MOTOR1_PIN PB0
|
||||
#define MOTOR2_PIN PB1
|
||||
#define MOTOR3_PIN PB6
|
||||
#define MOTOR4_PIN PB7
|
||||
#define LED_STRIP_PIN PA1
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define SOFTSERIAL1_TX_PIN PB10
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define SOFTSERIAL1_RX_PIN PB10
|
||||
#define I2C1_SCL_PIN PB8
|
||||
#define I2C1_SDA_PIN PB9
|
||||
#define LED0_PIN PC13
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define ADC_VBAT_PIN PA0
|
||||
#define ADC_CURR_PIN PA4
|
||||
#define BARO_CS_PIN PA13
|
||||
#define PINIO1_PIN PA14
|
||||
#define FLASH_CS_PIN PA15
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define GYRO_1_EXTI_PIN PC14
|
||||
#define GYRO_1_CS_PIN PC15
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 1, PA2 , 3, -1) \
|
||||
TIMER_PIN_MAP( 2, PA3 , 3, -1) \
|
||||
TIMER_PIN_MAP( 3, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 4, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 5, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 6, PB7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 7, PB10, 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 0
|
||||
|
||||
#define USE_BARO
|
||||
#define BARO_SPI_INSTANCE SPI2
|
||||
|
||||
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_ON
|
||||
#define FLASH_SPI_INSTANCE SPI3
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define BEEPER_INVERTED
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
#define PINIO1_CONFIG 129
|
||||
#define PINIO1_BOX 40
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW270_DEG
|
||||
#define GYRO_1_ALIGN_YAW 2700
|
|
@ -1,114 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F7X2
|
||||
|
||||
#define BOARD_NAME DAKEFPVF722
|
||||
#define MANUFACTURER_ID DAKE
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_ICM42688P
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_ICM42688P
|
||||
#define USE_ACCGYRO_BMI270
|
||||
#define USE_BARO_SPI_BMP280
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_M25P16
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PC3
|
||||
#define MOTOR1_PIN PC8
|
||||
#define MOTOR2_PIN PC9
|
||||
#define MOTOR3_PIN PB6
|
||||
#define MOTOR4_PIN PB7
|
||||
#define MOTOR5_PIN PB0
|
||||
#define MOTOR6_PIN PB1
|
||||
#define LED_STRIP_PIN PB3
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PB10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART5_TX_PIN PC12
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART3_RX_PIN PB11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART5_RX_PIN PD2
|
||||
#define UART6_RX_PIN PC7
|
||||
#define LED0_PIN PC15
|
||||
#define LED1_PIN PC14
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PC10
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PC11
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define ADC_VBAT_PIN PC1
|
||||
#define ADC_RSSI_PIN PC2
|
||||
#define ADC_CURR_PIN PC0
|
||||
#define BARO_CS_PIN PA13
|
||||
#define PINIO1_PIN PA14
|
||||
#define FLASH_CS_PIN PA15
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA0 , 2, -1) \
|
||||
TIMER_PIN_MAP( 1, PA1 , 2, -1) \
|
||||
TIMER_PIN_MAP( 2, PA9 , 1, -1) \
|
||||
TIMER_PIN_MAP( 3, PA10, 1, -1) \
|
||||
TIMER_PIN_MAP( 4, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 5, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 6, PB3 , 1, 0) \
|
||||
TIMER_PIN_MAP( 7, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 8, PB7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 9, PC8 , 2, 0) \
|
||||
TIMER_PIN_MAP(10, PC9 , 2, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC2_DMA_OPT 1
|
||||
|
||||
#define USE_BARO
|
||||
#define BARO_SPI_INSTANCE SPI2
|
||||
|
||||
|
||||
#define USE_ADC
|
||||
#define ADC_INSTANCE ADC2
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define BEEPER_INVERTED
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define PINIO1_CONFIG 129
|
||||
#define PINIO1_BOX 40
|
||||
#define FLASH_SPI_INSTANCE SPI3
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW270_DEG
|
||||
#define GYRO_1_ALIGN_YAW 2700
|
|
@ -1,114 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F405
|
||||
|
||||
#define BOARD_NAME DALRCF405
|
||||
#define MANUFACTURER_ID DALR
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_ACC_SPI_ICM20689
|
||||
#define USE_GYRO_SPI_ICM20689
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_W25Q128FV
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PC13
|
||||
#define MOTOR1_PIN PB0
|
||||
#define MOTOR2_PIN PC6
|
||||
#define MOTOR3_PIN PA10
|
||||
#define MOTOR4_PIN PA8
|
||||
#define MOTOR5_PIN PC8
|
||||
#define MOTOR6_PIN PB1
|
||||
#define MOTOR7_PIN PC7
|
||||
#define MOTOR8_PIN PC9
|
||||
#define RX_PPM_PIN PB15
|
||||
#define LED_STRIP_PIN PB6
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PB10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART5_TX_PIN PC12
|
||||
#define UART1_RX_PIN PB7
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART3_RX_PIN PB11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART5_RX_PIN PD2
|
||||
#define I2C1_SCL_PIN PB8
|
||||
#define I2C1_SDA_PIN PB9
|
||||
#define LED0_PIN PC14
|
||||
#define SPI1_SCK_PIN PB3
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PC10
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PC11
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PC3
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define ESCSERIAL_PIN PA3
|
||||
#define CAMERA_CONTROL_PIN PA5
|
||||
#define ADC_VBAT_PIN PC2
|
||||
#define ADC_RSSI_PIN PA0
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define FLASH_CS_PIN PB12
|
||||
#define MAX7456_SPI_CS_PIN PA15
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PB15, 3, -1) \
|
||||
TIMER_PIN_MAP( 1, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 2, PC6 , 2, 0) \
|
||||
TIMER_PIN_MAP( 3, PA10, 1, 0) \
|
||||
TIMER_PIN_MAP( 4, PA8 , 1, 1) \
|
||||
TIMER_PIN_MAP( 5, PC8 , 2, 0) \
|
||||
TIMER_PIN_MAP( 6, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 7, PC7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 8, PC9 , 2, 0) \
|
||||
TIMER_PIN_MAP( 9, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP(10, PA5 , 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define MAG_I2C_INSTANCE (I2CDEV_1)
|
||||
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define BEEPER_INVERTED
|
||||
//TODO #define OSD_DISPLAYPORT_DEVICE MAX7456
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
#define MAX7456_SPI_INSTANCE SPI3
|
||||
#define DASHBOARD_I2C_INSTANCE (I2CDEV_1)
|
||||
#define FLASH_SPI_INSTANCE SPI2
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW90_DEG
|
||||
#define GYRO_1_ALIGN_YAW 900
|
|
@ -1,116 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F7X2
|
||||
|
||||
#define BOARD_NAME DALRCF722DUAL
|
||||
#define MANUFACTURER_ID DALR
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_BARO_MS5611
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_W25Q128FV
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PC13
|
||||
#define MOTOR1_PIN PC6
|
||||
#define MOTOR2_PIN PC7
|
||||
#define MOTOR3_PIN PC8
|
||||
#define MOTOR4_PIN PC9
|
||||
#define MOTOR5_PIN PA8
|
||||
#define MOTOR6_PIN PA9
|
||||
#define RX_PPM_PIN PB7
|
||||
#define LED_STRIP_PIN PA15
|
||||
#define UART1_TX_PIN PB6
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PC10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART5_TX_PIN PC12
|
||||
#define UART1_RX_PIN PB7
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART3_RX_PIN PC11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART5_RX_PIN PD2
|
||||
#define I2C1_SCL_PIN PB8
|
||||
#define I2C1_SDA_PIN PB9
|
||||
#define LED0_PIN PC14
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define CAMERA_CONTROL_PIN PB1
|
||||
#define ADC_VBAT_PIN PC1
|
||||
#define ADC_RSSI_PIN PA0
|
||||
#define ADC_CURR_PIN PC0
|
||||
#define FLASH_CS_PIN PB2
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define GYRO_1_EXTI_PIN PB10
|
||||
#define GYRO_2_EXTI_PIN PC4
|
||||
#define GYRO_1_CS_PIN PB0
|
||||
#define GYRO_2_CS_PIN PA4
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PB7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 1, PC6 , 2, 0) \
|
||||
TIMER_PIN_MAP( 2, PC7 , 2, 0) \
|
||||
TIMER_PIN_MAP( 3, PC8 , 2, 0) \
|
||||
TIMER_PIN_MAP( 4, PC9 , 2, 0) \
|
||||
TIMER_PIN_MAP( 5, PA8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 6, PA9 , 1, 0) \
|
||||
TIMER_PIN_MAP( 7, PA15, 1, 0) \
|
||||
TIMER_PIN_MAP( 8, PB1 , 2, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC3_DMA_OPT 1
|
||||
|
||||
#define MAG_I2C_INSTANCE (I2CDEV_1)
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_1)
|
||||
|
||||
#define USE_ADC
|
||||
#define ADC_INSTANCE ADC3
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SCALE 160
|
||||
#define DEFAULT_CURRENT_METER_SCALE 166
|
||||
#define BEEPER_INVERTED
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define FLASH_SPI_INSTANCE SPI3
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW180_DEG
|
||||
#define GYRO_1_ALIGN_YAW 1800
|
||||
#define GYRO_2_SPI_INSTANCE SPI1
|
|
@ -1,107 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F411
|
||||
|
||||
#define BOARD_NAME DARWINF411
|
||||
#define MANUFACTURER_ID DAFP
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define USE_GYRO_SPI_ICM20689
|
||||
#define USE_ACC_SPI_ICM20689
|
||||
#define USE_ACCGYRO_BMI270
|
||||
#define USE_BARO_BMP280
|
||||
#define USE_MAX7456
|
||||
#define USE_SDCARD
|
||||
|
||||
#define BEEPER_PIN PB2
|
||||
#define MOTOR1_PIN PB4
|
||||
#define MOTOR2_PIN PB5
|
||||
#define MOTOR3_PIN PB6
|
||||
#define MOTOR4_PIN PB7
|
||||
#define MOTOR5_PIN PB3
|
||||
#define MOTOR6_PIN PB10
|
||||
#define RX_PPM_PIN PA3
|
||||
#define LED_STRIP_PIN PA8
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define SOFTSERIAL1_TX_PIN PB3
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define SOFTSERIAL1_RX_PIN PB3
|
||||
#define I2C1_SCL_PIN PB8
|
||||
#define I2C1_SDA_PIN PB9
|
||||
#define LED0_PIN PC13
|
||||
#define LED1_PIN PC14
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define ADC_VBAT_PIN PB0
|
||||
#define ADC_CURR_PIN PB1
|
||||
#define SDCARD_SPI_CS_PIN PA0
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define GYRO_1_EXTI_PIN PA1
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
#define USB_DETECT_PIN PC15
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA3 , 3, -1) \
|
||||
TIMER_PIN_MAP( 1, PB4 , 1, 0) \
|
||||
TIMER_PIN_MAP( 2, PB5 , 1, 0) \
|
||||
TIMER_PIN_MAP( 3, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 4, PB7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 5, PB3 , 1, 0) \
|
||||
TIMER_PIN_MAP( 6, PB10, 1, 0) \
|
||||
TIMER_PIN_MAP( 7, PA0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 8, PA2 , 2, 0) \
|
||||
TIMER_PIN_MAP( 9, PA8 , 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_1)
|
||||
//TODO #define SERIALRX_PROVIDER CRSF
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_AUTO
|
||||
#define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_OFF
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 125
|
||||
#define BEEPER_INVERTED
|
||||
#define USE_SDCARD_SPI
|
||||
#define SDCARD_SPI_INSTANCE SPI2
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW90_DEG_FLIP
|
||||
#define GYRO_1_ALIGN_PITCH 1800
|
||||
#define GYRO_1_ALIGN_YAW 900
|
|
@ -1,123 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F411
|
||||
|
||||
#define BOARD_NAME DARWINF4SX1280HD
|
||||
#define MANUFACTURER_ID DAFP
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
#define USE_ACC_SPI_ICM20689
|
||||
#define USE_GYRO_SPI_ICM20689
|
||||
#define USE_ACCGYRO_LSM6DSO
|
||||
#define USE_ACCGYRO_BMI270
|
||||
#define USE_GYRO_SPI_ICM42605
|
||||
#define USE_GYRO_SPI_ICM42688P
|
||||
#define USE_ACC_SPI_ICM42605
|
||||
#define USE_ACC_SPI_ICM42688P
|
||||
#define USE_MAX7456
|
||||
#define USE_RX_SPI
|
||||
#define USE_RX_EXPRESSLRS
|
||||
#define USE_RX_EXPRESSLRS_TELEMETRY
|
||||
#define USE_RX_SX1280
|
||||
#define RX_CHANNELS_AETR
|
||||
#define RX_SPI_DEFAULT_PROTOCOL RX_SPI_EXPRESSLRS
|
||||
#define DEFAULT_RX_FEATURE FEATURE_RX_SPI
|
||||
#define RX_SPI_PROTOCOL EXPRESSLRS
|
||||
#define RX_EXPRESSLRS_TIMER_INSTANCE TIM5
|
||||
#define RX_EXPRESSLRS_SPI_RESET_PIN PB9
|
||||
#define RX_EXPRESSLRS_SPI_BUSY_PIN PA13
|
||||
#define RX_SPI_CS PA15
|
||||
#define RX_SPI_EXTI PC13
|
||||
#define RX_SPI_BIND PB2
|
||||
#define RX_SPI_LED PC15
|
||||
|
||||
#define BEEPER_PIN PA14
|
||||
#define MOTOR1_PIN PB8
|
||||
#define MOTOR2_PIN PA0
|
||||
#define MOTOR3_PIN PB10
|
||||
#define MOTOR4_PIN PB7
|
||||
#define MOTOR5_PIN PA8
|
||||
#define MOTOR6_PIN PA10
|
||||
#define LED_STRIP_PIN PB1
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define SOFTSERIAL1_TX_PIN PA8
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define SOFTSERIAL1_RX_PIN PA8
|
||||
#define LED0_PIN PC14
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define ADC_VBAT_PIN PA1
|
||||
#define ADC_CURR_PIN PB0
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define RX_SPI_CS_PIN PA15
|
||||
#define RX_SPI_EXTI_PIN PC13
|
||||
#define RX_SPI_BIND_PIN PB2
|
||||
#define RX_SPI_LED_PIN PC15
|
||||
#define RX_SPI_EXPRESSLRS_RESET_PIN PB9
|
||||
#define RX_SPI_EXPRESSLRS_BUSY_PIN PA13
|
||||
#define GYRO_1_EXTI_PIN PB6
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 1, PB8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 2, PA0 , 1, 0) \
|
||||
TIMER_PIN_MAP( 3, PB10, 1, 0) \
|
||||
TIMER_PIN_MAP( 4, PB7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 5, PA8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 6, PA10, 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 0
|
||||
|
||||
#define RX_SPI_INSTANCE SPI3
|
||||
#define RX_SPI_LED_INVERTED
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_AUTO
|
||||
#define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_OFF
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 125
|
||||
#define BEEPER_INVERTED
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW90_DEG
|
||||
#define GYRO_1_ALIGN_YAW 900
|
||||
//TODO #define EXPRESSLRS_DOMAIN ISM2400
|
|
@ -1,127 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F7X2
|
||||
|
||||
#define BOARD_NAME DARWINF722HD
|
||||
#define MANUFACTURER_ID DAFP
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_BARO_BMP280
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_W25Q128FV
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PC13
|
||||
#define MOTOR1_PIN PB4
|
||||
#define MOTOR2_PIN PB5
|
||||
#define MOTOR3_PIN PB0
|
||||
#define MOTOR4_PIN PB1
|
||||
#define MOTOR5_PIN PA15
|
||||
#define MOTOR6_PIN PB3
|
||||
#define MOTOR7_PIN PB6
|
||||
#define MOTOR8_PIN PB7
|
||||
#define RX_PPM_PIN PA3
|
||||
#define RX_PWM1_PIN PA2
|
||||
#define RX_PWM2_PIN PA1
|
||||
#define RX_PWM3_PIN PA0
|
||||
#define LED_STRIP_PIN PA8
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PB10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART3_RX_PIN PB11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART6_RX_PIN PC7
|
||||
#define I2C1_SCL_PIN PB8
|
||||
#define I2C1_SDA_PIN PB9
|
||||
#define LED0_PIN PA14
|
||||
#define LED1_PIN PA13
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PC10
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PC11
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PC12
|
||||
#define ADC_VBAT_PIN PC2
|
||||
#define ADC_RSSI_PIN PC0
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define ADC_EXTERNAL1_PIN PA4
|
||||
#define PINIO1_PIN PC8
|
||||
#define PINIO2_PIN PC9
|
||||
#define FLASH_CS_PIN PD2
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define GYRO_2_EXTI_PIN PC3
|
||||
#define GYRO_1_CS_PIN PB2
|
||||
#define GYRO_2_CS_PIN PC15
|
||||
#define USB_DETECT_PIN PC14
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PB4 , 1, 0) \
|
||||
TIMER_PIN_MAP( 1, PB5 , 1, 0) \
|
||||
TIMER_PIN_MAP( 2, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 3, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 4, PA15, 1, 0) \
|
||||
TIMER_PIN_MAP( 5, PB3 , 1, 0) \
|
||||
TIMER_PIN_MAP( 6, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 7, PB7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 8, PA8 , 1, 2) \
|
||||
TIMER_PIN_MAP( 9, PA3 , 3, -1) \
|
||||
TIMER_PIN_MAP(10, PA2 , 3, -1) \
|
||||
TIMER_PIN_MAP(11, PA1 , 2, 0) \
|
||||
TIMER_PIN_MAP(12, PA0 , 2, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define MAG_I2C_INSTANCE (I2CDEV_1)
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_1)
|
||||
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
//TODO #define MOTOR_PWM_PROTOCOL DSHOT600
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 125
|
||||
#define BEEPER_INVERTED
|
||||
//TODO #define OSD_WARN_CORE_TEMP OFF
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define PINIO1_BOX 40
|
||||
#define PINIO2_BOX 41
|
||||
#define FLASH_SPI_INSTANCE SPI3
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW180_DEG
|
||||
#define GYRO_1_ALIGN_YAW 1800
|
|
@ -1,114 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F7X2
|
||||
|
||||
#define BOARD_NAME DFR_F722_DUAL_HD
|
||||
#define MANUFACTURER_ID DFRA
|
||||
|
||||
#define BEEPER_PIN PC15
|
||||
#define MOTOR1_PIN PC8
|
||||
#define MOTOR2_PIN PC6
|
||||
#define MOTOR3_PIN PC9
|
||||
#define MOTOR4_PIN PC7
|
||||
#define MOTOR5_PIN PB6
|
||||
#define MOTOR6_PIN PB7
|
||||
#define MOTOR7_PIN PB1
|
||||
#define MOTOR8_PIN PB0
|
||||
#define RX_PPM_PIN PA3
|
||||
#define LED_STRIP_PIN PA1
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PB10
|
||||
#define UART4_TX_PIN PC10
|
||||
#define UART5_TX_PIN PC12
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART3_RX_PIN PB11
|
||||
#define UART4_RX_PIN PC11
|
||||
#define UART5_RX_PIN PD2
|
||||
#define I2C2_SCL_PIN PB10
|
||||
#define I2C2_SDA_PIN PB11
|
||||
#define LED0_PIN PC4
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define CAMERA_CONTROL_PIN PA0
|
||||
#define ADC_VBAT_PIN PC1
|
||||
#define ADC_RSSI_PIN PC0
|
||||
#define ADC_CURR_PIN PC2
|
||||
#define PINIO1_PIN PC13
|
||||
#define PINIO2_PIN PC14
|
||||
#define PINIO3_PIN PB8
|
||||
#define FLASH_CS_PIN PB9
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define GYRO_1_EXTI_PIN PA8
|
||||
#define GYRO_2_EXTI_PIN PB2
|
||||
#define GYRO_1_CS_PIN PA15
|
||||
#define GYRO_2_CS_PIN PC3
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 1, PA3 , 3, -1) \
|
||||
TIMER_PIN_MAP( 2, PC8 , 2, 1) \
|
||||
TIMER_PIN_MAP( 3, PC6 , 2, 0) \
|
||||
TIMER_PIN_MAP( 4, PC9 , 2, 0) \
|
||||
TIMER_PIN_MAP( 5, PC7 , 2, 1) \
|
||||
TIMER_PIN_MAP( 6, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 7, PB7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 8, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 9, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP(10, PA1 , 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC3_DMA_OPT 0
|
||||
|
||||
#define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_2)
|
||||
#define MAG_I2C_INSTANCE (I2CDEV_2)
|
||||
|
||||
#define USE_ADC
|
||||
#define ADC_INSTANCE ADC3
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 100
|
||||
#define BEEPER_INVERTED
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define PINIO1_CONFIG 129
|
||||
#define PINIO1_BOX 0
|
||||
#define FLASH_SPI_INSTANCE SPI3
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW0_DEG
|
||||
#define GYRO_2_SPI_INSTANCE SPI1
|
||||
#define GYRO_2_ALIGN CW90_DEG
|
|
@ -1,99 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F7X2
|
||||
|
||||
#define BOARD_NAME DRONIUSF7
|
||||
#define MANUFACTURER_ID FOSS
|
||||
|
||||
#define BEEPER_PIN PC13
|
||||
#define MOTOR1_PIN PA9
|
||||
#define MOTOR2_PIN PA8
|
||||
#define MOTOR3_PIN PC8
|
||||
#define MOTOR4_PIN PC9
|
||||
#define RX_PPM_PIN PB7
|
||||
#define LED_STRIP_PIN PA15
|
||||
#define UART1_TX_PIN PB6
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PC10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART5_TX_PIN PC12
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART1_RX_PIN PB7
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART3_RX_PIN PC11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART5_RX_PIN PD2
|
||||
#define UART6_RX_PIN PC7
|
||||
#define I2C1_SCL_PIN PB8
|
||||
#define I2C1_SDA_PIN PB9
|
||||
#define LED0_PIN PC14
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define ADC_VBAT_PIN PC1
|
||||
#define ADC_CURR_PIN PC0
|
||||
#define PINIO1_PIN PC2
|
||||
#define FLASH_CS_PIN PB2
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define GYRO_1_EXTI_PIN PB10
|
||||
#define GYRO_1_CS_PIN PB0
|
||||
#define USB_DETECT_PIN PA10
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PB7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 1, PA9 , 1, 0) \
|
||||
TIMER_PIN_MAP( 2, PA8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 3, PC8 , 2, 0) \
|
||||
TIMER_PIN_MAP( 4, PC9 , 2, 0) \
|
||||
TIMER_PIN_MAP( 5, PA15, 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define MAG_I2C_INSTANCE (I2CDEV_1)
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_1)
|
||||
#define DEFAULT_BARO_I2C_ADDRESS 119
|
||||
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 119
|
||||
#define BEEPER_INVERTED
|
||||
//TODO #define OSD_DISPLAYPORT_DEVICE MAX7456
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define FLASH_SPI_INSTANCE SPI3
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW0_DEG_FLIP
|
||||
#define GYRO_1_ALIGN_PITCH 1800
|
||||
#define PINIO1_BOX 40
|
|
@ -1,113 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F405
|
||||
|
||||
#define BOARD_NAME DYSF44530D
|
||||
#define MANUFACTURER_ID DYST
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PC13
|
||||
#define MOTOR1_PIN PC6
|
||||
#define MOTOR2_PIN PC7
|
||||
#define MOTOR3_PIN PC8
|
||||
#define MOTOR4_PIN PC9
|
||||
#define MOTOR5_PIN PA15
|
||||
#define MOTOR6_PIN PA8
|
||||
#define RX_PPM_PIN PA3
|
||||
#define RX_PWM1_PIN PA0
|
||||
#define RX_PWM2_PIN PA1
|
||||
#define RX_PWM3_PIN PA2
|
||||
#define LED_STRIP_PIN PB6
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PC10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART5_TX_PIN PC12
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART3_RX_PIN PC11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART5_RX_PIN PD2
|
||||
#define I2C1_SCL_PIN PB6
|
||||
#define I2C1_SDA_PIN PB7
|
||||
#define LED0_PIN PB9
|
||||
#define LED1_PIN PA14
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define ESCSERIAL_PIN PA3
|
||||
#define ADC_VBAT_PIN PC5
|
||||
#define ADC_RSSI_PIN PB1
|
||||
#define ADC_CURR_PIN PC4
|
||||
#define FLASH_CS_PIN PC0
|
||||
#define MAX7456_SPI_CS_PIN PB10
|
||||
#define GYRO_1_EXTI_PIN PC3
|
||||
#define GYRO_1_CS_PIN PC2
|
||||
#define USB_DETECT_PIN PB12
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA3 , 2, 0) \
|
||||
TIMER_PIN_MAP( 1, PC6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 2, PC7 , 2, 1) \
|
||||
TIMER_PIN_MAP( 3, PC8 , 2, 1) \
|
||||
TIMER_PIN_MAP( 4, PC9 , 2, 0) \
|
||||
TIMER_PIN_MAP( 5, PA15, 1, 0) \
|
||||
TIMER_PIN_MAP( 6, PA8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 7, PB8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 8, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 9, PA0 , 2, 0) \
|
||||
TIMER_PIN_MAP(10, PA1 , 2, 0) \
|
||||
TIMER_PIN_MAP(11, PA2 , 3, -1)
|
||||
|
||||
|
||||
|
||||
#define SPI3_TX_DMA_OPT 1
|
||||
#define ADC1_DMA_OPT 0
|
||||
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_1)
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 179
|
||||
#define BEEPER_INVERTED
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define FLASH_SPI_INSTANCE SPI3
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW270_DEG
|
||||
#define GYRO_1_ALIGN_YAW 2700
|
|
@ -1,115 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F405
|
||||
|
||||
#define BOARD_NAME DYSF4PRO
|
||||
#define MANUFACTURER_ID DYST
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PB4
|
||||
#define MOTOR1_PIN PB0
|
||||
#define MOTOR2_PIN PB1
|
||||
#define MOTOR3_PIN PA3
|
||||
#define MOTOR4_PIN PA2
|
||||
#define MOTOR5_PIN PA1
|
||||
#define MOTOR6_PIN PA8
|
||||
#define RX_PPM_PIN PB14
|
||||
#define RX_PWM1_PIN PB14
|
||||
#define RX_PWM2_PIN PB15
|
||||
#define RX_PWM3_PIN PC6
|
||||
#define RX_PWM4_PIN PC7
|
||||
#define RX_PWM5_PIN PC8
|
||||
#define RX_PWM6_PIN PC9
|
||||
#define SONAR_TRIGGER_PIN PA1
|
||||
#define SONAR_ECHO_PIN PA8
|
||||
#define LED_STRIP_PIN PA1
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART3_TX_PIN PB10
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART3_RX_PIN PB11
|
||||
#define UART6_RX_PIN PC7
|
||||
#define INVERTER_PIN_UART1 PC0
|
||||
#define LED0_PIN PB5
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI3_SCK_PIN PC10
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI3_SDI_PIN PC11
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI3_SDO_PIN PC12
|
||||
#define ESCSERIAL_PIN PB14
|
||||
#define ADC_VBAT_PIN PC2
|
||||
#define ADC_RSSI_PIN PC3
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define FLASH_CS_PIN PB3
|
||||
#define MAX7456_SPI_CS_PIN PA15
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
#define USB_DETECT_PIN PC5
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PB14, 3, -1) \
|
||||
TIMER_PIN_MAP( 1, PB15, 3, -1) \
|
||||
TIMER_PIN_MAP( 2, PC6 , 2, 0) \
|
||||
TIMER_PIN_MAP( 3, PC7 , 2, 0) \
|
||||
TIMER_PIN_MAP( 4, PC8 , 2, 0) \
|
||||
TIMER_PIN_MAP( 5, PC9 , 2, 0) \
|
||||
TIMER_PIN_MAP( 6, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 7, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 8, PA3 , 1, 1) \
|
||||
TIMER_PIN_MAP( 9, PA2 , 1, 0) \
|
||||
TIMER_PIN_MAP(10, PA1 , 2, 0) \
|
||||
TIMER_PIN_MAP(11, PA8 , 1, 0) \
|
||||
TIMER_PIN_MAP(12, PA9 , 1, 0) \
|
||||
TIMER_PIN_MAP(13, PA10, 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC2_DMA_OPT 1
|
||||
|
||||
#define MAG_I2C_INSTANCE (I2CDEV_2)
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_2)
|
||||
#define USE_ADC
|
||||
#define ADC_INSTANCE ADC2
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define BEEPER_INVERTED
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
#define MAX7456_SPI_INSTANCE SPI3
|
||||
#define DASHBOARD_I2C_INSTANCE (I2CDEV_2)
|
||||
#define FLASH_SPI_INSTANCE SPI3
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW180_DEG
|
||||
#define GYRO_2_SPI_INSTANCE SPI1
|
|
@ -1,90 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F411
|
||||
|
||||
#define BOARD_NAME EACHINEF411_AIO
|
||||
#define MANUFACTURER_ID EACH
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PB2
|
||||
#define MOTOR1_PIN PB5
|
||||
#define MOTOR2_PIN PB7
|
||||
#define MOTOR3_PIN PB4
|
||||
#define MOTOR4_PIN PB6
|
||||
#define RX_PPM_PIN PA3
|
||||
#define LED_STRIP_PIN PA8
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define SOFTSERIAL1_TX_PIN PB3
|
||||
#define I2C1_SCL_PIN PB8
|
||||
#define I2C1_SDA_PIN PB9
|
||||
#define LED0_PIN PC13
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define ADC_VBAT_PIN PB0
|
||||
#define ADC_CURR_PIN PB1
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define GYRO_1_EXTI_PIN PA1
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
#define USB_DETECT_PIN PC15
|
||||
#define FLASH_CS_PIN PA15
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA3 , 3, -1) \
|
||||
TIMER_PIN_MAP( 1, PB5 , 1, 0) \
|
||||
TIMER_PIN_MAP( 2, PB7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 3, PB4 , 1, 0) \
|
||||
TIMER_PIN_MAP( 4, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 5, PB3 , 1, 0) \
|
||||
TIMER_PIN_MAP( 6, PA0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 7, PA2 , 2, 0) \
|
||||
TIMER_PIN_MAP( 8, PA8 , 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_OFF
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define FLASH_SPI_INSTANCE SPI2
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN_YAW 2700
|
||||
#define GYRO_1_ALIGN CW270_DEG
|
||||
#define BEEPER_INVERTED
|
|
@ -1,123 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F7X2
|
||||
|
||||
#define BOARD_NAME EACHINEF722
|
||||
#define MANUFACTURER_ID EACH
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_W25Q128FV
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PC13
|
||||
#define MOTOR1_PIN PB4
|
||||
#define MOTOR2_PIN PB5
|
||||
#define MOTOR3_PIN PB0
|
||||
#define MOTOR4_PIN PB1
|
||||
#define MOTOR5_PIN PA15
|
||||
#define MOTOR6_PIN PB3
|
||||
#define MOTOR7_PIN PB6
|
||||
#define MOTOR8_PIN PB7
|
||||
#define RX_PPM_PIN PA3
|
||||
#define RX_PWM1_PIN PA2
|
||||
#define RX_PWM2_PIN PA1
|
||||
#define RX_PWM3_PIN PA0
|
||||
#define LED_STRIP_PIN PA8
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PB10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART3_RX_PIN PB11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART6_RX_PIN PC7
|
||||
#define I2C1_SCL_PIN PB8
|
||||
#define I2C1_SDA_PIN PB9
|
||||
#define LED0_PIN PA14
|
||||
#define LED1_PIN PA13
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PC10
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PC11
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PC12
|
||||
#define ADC_VBAT_PIN PC2
|
||||
#define ADC_RSSI_PIN PC0
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define BARO_CS_PIN PA4
|
||||
#define PINIO1_PIN PC8
|
||||
#define PINIO2_PIN PC9
|
||||
#define FLASH_CS_PIN PD2
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define GYRO_1_CS_PIN PB2
|
||||
#define USB_DETECT_PIN PC14
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PB4 , 1, 0) \
|
||||
TIMER_PIN_MAP( 1, PB5 , 1, 0) \
|
||||
TIMER_PIN_MAP( 2, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 3, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 4, PA15, 1, 0) \
|
||||
TIMER_PIN_MAP( 5, PB3 , 1, 0) \
|
||||
TIMER_PIN_MAP( 6, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 7, PB7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 8, PA8 , 1, 2) \
|
||||
TIMER_PIN_MAP( 9, PA3 , 3, -1) \
|
||||
TIMER_PIN_MAP(10, PA2 , 3, -1) \
|
||||
TIMER_PIN_MAP(11, PA1 , 2, 0) \
|
||||
TIMER_PIN_MAP(12, PA0 , 2, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define MAG_I2C_INSTANCE (I2CDEV_1)
|
||||
#define USE_BARO
|
||||
#define BARO_SPI_INSTANCE SPI1
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
//TODO #define MOTOR_PWM_PROTOCOL DSHOT600
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 179
|
||||
#define BEEPER_INVERTED
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define FLASH_SPI_INSTANCE SPI3
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW180_DEG_FLIP
|
||||
#define GYRO_1_ALIGN_PITCH 1800
|
||||
#define GYRO_1_ALIGN_YAW 1800
|
||||
#define PINIO1_BOX 40
|
||||
#define PINIO2_BOX 41
|
|
@ -1,120 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F7X2
|
||||
|
||||
#define BOARD_NAME EACHINEF722_AIO
|
||||
#define MANUFACTURER_ID EACH
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PC13
|
||||
#define MOTOR1_PIN PB4
|
||||
#define MOTOR2_PIN PB5
|
||||
#define MOTOR3_PIN PB0
|
||||
#define MOTOR4_PIN PB1
|
||||
#define MOTOR5_PIN PA15
|
||||
#define MOTOR6_PIN PB3
|
||||
#define MOTOR7_PIN PB6
|
||||
#define MOTOR8_PIN PB7
|
||||
#define RX_PPM_PIN PA3
|
||||
#define RX_PWM1_PIN PA2
|
||||
#define RX_PWM2_PIN PA1
|
||||
#define RX_PWM3_PIN PA0
|
||||
#define LED_STRIP_PIN PA8
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PB10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART3_RX_PIN PB11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART6_RX_PIN PC7
|
||||
#define I2C1_SCL_PIN PB8
|
||||
#define I2C1_SDA_PIN PB9
|
||||
#define LED0_PIN PA14
|
||||
#define LED1_PIN PA13
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PC10
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PC11
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PC12
|
||||
#define ADC_VBAT_PIN PC2
|
||||
#define ADC_RSSI_PIN PC0
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define BARO_CS_PIN PA4
|
||||
#define PINIO1_PIN PC8
|
||||
#define PINIO2_PIN PC9
|
||||
#define FLASH_CS_PIN PD2
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define GYRO_1_CS_PIN PB2
|
||||
#define USB_DETECT_PIN PC14
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PB4 , 1, 0) \
|
||||
TIMER_PIN_MAP( 1, PB5 , 1, 0) \
|
||||
TIMER_PIN_MAP( 2, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 3, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 4, PA15, 1, 0) \
|
||||
TIMER_PIN_MAP( 5, PB3 , 1, 0) \
|
||||
TIMER_PIN_MAP( 6, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 7, PB7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 8, PA8 , 1, 2) \
|
||||
TIMER_PIN_MAP( 9, PA3 , 3, -1) \
|
||||
TIMER_PIN_MAP(10, PA2 , 3, -1) \
|
||||
TIMER_PIN_MAP(11, PA1 , 2, 0) \
|
||||
TIMER_PIN_MAP(12, PA0 , 2, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define MAG_I2C_INSTANCE (I2CDEV_1)
|
||||
#define USE_BARO
|
||||
#define BARO_SPI_INSTANCE SPI1
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
//TODO #define MOTOR_PWM_PROTOCOL DSHOT600
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 179
|
||||
#define BEEPER_INVERTED
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define FLASH_SPI_INSTANCE SPI3
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW180_DEG
|
||||
#define GYRO_1_ALIGN_YAW 1800
|
||||
#define PINIO1_BOX 40
|
||||
#define PINIO2_BOX 41
|
|
@ -1,125 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F405
|
||||
|
||||
#define BOARD_NAME ELINF405
|
||||
#define MANUFACTURER_ID DRCL
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PB4
|
||||
#define MOTOR1_PIN PB0
|
||||
#define MOTOR2_PIN PB1
|
||||
#define MOTOR3_PIN PA3
|
||||
#define MOTOR4_PIN PA2
|
||||
#define RX_PPM_PIN PB6
|
||||
#define LED_STRIP_PIN PB6
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART3_TX_PIN PB10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART6_TX_PIN PC6
|
||||
#define SOFTSERIAL1_TX_PIN PC9
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART3_RX_PIN PB11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART6_RX_PIN PC7
|
||||
#define SOFTSERIAL2_RX_PIN PA8
|
||||
#define INVERTER_PIN_UART1 PC0
|
||||
#define I2C1_SCL_PIN PB8
|
||||
#define I2C1_SDA_PIN PB9
|
||||
#define LED0_PIN PB5
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PC10
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PC11
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PC12
|
||||
#define CAMERA_CONTROL_PIN PB7
|
||||
#define ADC_VBAT_PIN PC2
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define PINIO1_PIN PC13
|
||||
#define PINIO2_PIN PC14
|
||||
#define FLASH_CS_PIN PB3
|
||||
#define MAX7456_SPI_CS_PIN PC8
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
#define USB_DETECT_PIN PC5
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 1, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 2, PA3 , 1, 1) \
|
||||
TIMER_PIN_MAP( 3, PA2 , 1, 0) \
|
||||
TIMER_PIN_MAP( 4, PA8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 5, PC9 , 2, 0) \
|
||||
TIMER_PIN_MAP( 6, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 7, PB7 , 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_1)
|
||||
|
||||
//TODO #define SERIALRX_HALFDUPLEX ON
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
//TODO #define MOTOR_PWM_PROTOCOL DSHOT600
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_PID_PROCESS_DENOM 1
|
||||
//TODO #define OSD_WARN_CORE_TEMP OFF
|
||||
//TODO #define OSD_WARN_RC_SMOOTHING OFF
|
||||
//TODO #define OSD_WARN_FAIL_SAFE OFF
|
||||
//TODO #define OSD_WARN_LAUNCH_CONTROL OFF
|
||||
//TODO #define OSD_WARN_NO_GPS_RESCUE OFF
|
||||
//TODO #define OSD_WARN_GPS_RESCUE_DISABLED OFF
|
||||
//TODO #define OSD_VBAT_POS 2401
|
||||
//TODO #define OSD_RSSI_POS 2106
|
||||
//TODO #define OSD_VTX_CHANNEL_POS 2424
|
||||
//TODO #define OSD_CROSSHAIRS_POS 2253
|
||||
//TODO #define OSD_AH_SBAR_POS 2254
|
||||
//TODO #define OSD_AH_POS 2126
|
||||
//TODO #define OSD_COMPASS_BAR_POS 106
|
||||
//TODO #define OSD_WARNINGS_POS 2377
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
//TODO #define VCD_VIDEO_SYSTEM NTSC
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define DASHBOARD_I2C_INSTANCE (I2CDEV_1)
|
||||
#define PINIO1_BOX 40
|
||||
#define PINIO2_BOX 41
|
||||
#define FLASH_SPI_INSTANCE SPI3
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW0_DEG
|
||||
#define GYRO_2_SPI_INSTANCE SPI1
|
|
@ -1,120 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F7X2
|
||||
|
||||
#define BOARD_NAME ELINF722
|
||||
#define MANUFACTURER_ID DRCL
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PB4
|
||||
#define MOTOR1_PIN PB0
|
||||
#define MOTOR2_PIN PB1
|
||||
#define MOTOR3_PIN PA3
|
||||
#define MOTOR4_PIN PA2
|
||||
#define RX_PPM_PIN PB6
|
||||
#define LED_STRIP_PIN PB6
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART3_TX_PIN PB10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART6_TX_PIN PC6
|
||||
#define SOFTSERIAL1_TX_PIN PC9
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART3_RX_PIN PB11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART6_RX_PIN PC7
|
||||
#define SOFTSERIAL2_RX_PIN PA8
|
||||
#define I2C1_SCL_PIN PB8
|
||||
#define I2C1_SDA_PIN PB9
|
||||
#define LED0_PIN PB5
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PC10
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PC11
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PC12
|
||||
#define CAMERA_CONTROL_PIN PB7
|
||||
#define ADC_VBAT_PIN PC2
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define PINIO1_PIN PC13
|
||||
#define PINIO2_PIN PC14
|
||||
#define FLASH_CS_PIN PB3
|
||||
#define MAX7456_SPI_CS_PIN PC8
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
#define USB_DETECT_PIN PC15
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 1, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 2, PA3 , 1, 1) \
|
||||
TIMER_PIN_MAP( 3, PA2 , 1, 0) \
|
||||
TIMER_PIN_MAP( 4, PA8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 5, PC9 , 2, 0) \
|
||||
TIMER_PIN_MAP( 6, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 7, PB7 , 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_1)
|
||||
|
||||
//TODO #define SERIALRX_HALFDUPLEX ON
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
//TODO #define MOTOR_PWM_PROTOCOL DSHOT600
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_PID_PROCESS_DENOM 1
|
||||
//TODO #define OSD_WARN_CORE_TEMP OFF
|
||||
//TODO #define OSD_WARN_RC_SMOOTHING OFF
|
||||
//TODO #define OSD_WARN_FAIL_SAFE OFF
|
||||
//TODO #define OSD_WARN_LAUNCH_CONTROL OFF
|
||||
//TODO #define OSD_WARN_NO_GPS_RESCUE OFF
|
||||
//TODO #define OSD_WARN_GPS_RESCUE_DISABLED OFF
|
||||
//TODO #define OSD_VBAT_POS 2401
|
||||
//TODO #define OSD_RSSI_POS 2106
|
||||
//TODO #define OSD_VTX_CHANNEL_POS 2424
|
||||
//TODO #define OSD_CROSSHAIRS_POS 2253
|
||||
//TODO #define OSD_AH_SBAR_POS 2254
|
||||
//TODO #define OSD_AH_POS 2126
|
||||
//TODO #define OSD_COMPASS_BAR_POS 106
|
||||
//TODO #define OSD_WARNINGS_POS 2377
|
||||
//TODO #define VCD_VIDEO_SYSTEM NTSC
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define PINIO1_BOX 40
|
||||
#define PINIO2_BOX 41
|
||||
#define FLASH_SPI_INSTANCE SPI3
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW0_DEG
|
||||
#define GYRO_2_SPI_INSTANCE SPI1
|
|
@ -1,78 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F405
|
||||
|
||||
#define BOARD_NAME ELLE0
|
||||
#define MANUFACTURER_ID LEGA
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
|
||||
#define MOTOR1_PIN PC6
|
||||
#define MOTOR2_PIN PC7
|
||||
#define MOTOR3_PIN PC8
|
||||
#define MOTOR4_PIN PC9
|
||||
#define MOTOR5_PIN PA0
|
||||
#define MOTOR6_PIN PA1
|
||||
#define MOTOR7_PIN PB8
|
||||
#define MOTOR8_PIN PB9
|
||||
#define RX_PPM_PIN PA2
|
||||
#define RX_PWM1_PIN PA2
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PB10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART3_RX_PIN PB11
|
||||
#define LED0_PIN PA8
|
||||
#define LED1_PIN PB4
|
||||
#define LED2_PIN PC2
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define ADC_VBAT_PIN PC4
|
||||
#define ADC_CURR_PIN PC5
|
||||
#define GYRO_1_EXTI_PIN PB5
|
||||
#define GYRO_1_CS_PIN PB12
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA2 , 1, 0) \
|
||||
TIMER_PIN_MAP( 1, PC6 , 2, 0) \
|
||||
TIMER_PIN_MAP( 2, PC7 , 2, 0) \
|
||||
TIMER_PIN_MAP( 3, PC8 , 2, 1) \
|
||||
TIMER_PIN_MAP( 4, PC9 , 2, 0) \
|
||||
TIMER_PIN_MAP( 5, PA0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 6, PA1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 7, PB8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 8, PB9 , 1, -1)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define SYSTEM_HSE_MHZ 25
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI2
|
||||
#define GYRO_1_ALIGN CW270_DEG
|
||||
#define GYRO_1_ALIGN_YAW 2700
|
|
@ -1,117 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F411
|
||||
|
||||
#define BOARD_NAME EMAX_BABYHAWK_II_HD
|
||||
#define MANUFACTURER_ID EMAX
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_ACCGYRO_BMI270
|
||||
#define USE_GYRO_SPI_ICM20689
|
||||
#define USE_ACC_SPI_ICM20689
|
||||
#define USE_ACC_SPI_ICM42688P
|
||||
#define USE_GYRO_SPI_ICM42688P
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_M25P16
|
||||
#define USE_FLASH_W25M512
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PC14
|
||||
#define MOTOR1_PIN PA8
|
||||
#define MOTOR2_PIN PA9
|
||||
#define MOTOR3_PIN PA10
|
||||
#define MOTOR4_PIN PB0
|
||||
#define MOTOR5_PIN PB4
|
||||
#define RX_PPM_PIN PA3
|
||||
#define RX_PWM1_PIN PA2
|
||||
#define RX_PWM2_PIN PA9
|
||||
#define RX_PWM3_PIN PA10
|
||||
#define LED_STRIP_PIN PA15
|
||||
#define UART1_TX_PIN PB6
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART1_RX_PIN PB7
|
||||
#define UART2_RX_PIN PA3
|
||||
#define LED0_PIN PC13
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define CAMERA_CONTROL_PIN PB10
|
||||
#define ADC_VBAT_PIN PA0
|
||||
#define ADC_RSSI_PIN PB1
|
||||
#define ADC_CURR_PIN PA1
|
||||
#define PINIO1_PIN PB5
|
||||
#define FLASH_CS_PIN PB2
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define GYRO_1_EXTI_PIN PB3
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
#define USB_DETECT_PIN PC15
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA2 , 3, -1) \
|
||||
TIMER_PIN_MAP( 1, PA8 , 1, 1) \
|
||||
TIMER_PIN_MAP( 2, PA9 , 1, 1) \
|
||||
TIMER_PIN_MAP( 3, PA10, 1, 1) \
|
||||
TIMER_PIN_MAP( 4, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 5, PB4 , 1, 0) \
|
||||
TIMER_PIN_MAP( 6, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 7, PA3 , 2, 1) \
|
||||
TIMER_PIN_MAP( 8, PB10, 1, 0) \
|
||||
TIMER_PIN_MAP( 9, PA15, 1, 0) \
|
||||
TIMER_PIN_MAP(10, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP(11, PB7 , 1, 0) \
|
||||
TIMER_PIN_MAP(12, PB8 , 1, 0) \
|
||||
TIMER_PIN_MAP(13, PA0 , 2, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 0
|
||||
|
||||
#define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_1
|
||||
|
||||
//TODO #define SERIALRX_INVERTED OFF
|
||||
#define USE_ADC
|
||||
#define ADC_INSTANCE ADC1
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_AUTO
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 179
|
||||
#define BEEPER_INVERTED
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
//TODO #define MAX7456_CLOCK DEFAULT
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
//TODO #define USB_MSC_PIN_PULLUP ON
|
||||
#define FLASH_SPI_INSTANCE SPI2
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW180_DEG
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_2_SPI_INSTANCE SPI1
|
||||
#define GYRO_2_ALIGN CW0_DEG
|
|
@ -1,119 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F411SX1280
|
||||
|
||||
#define BOARD_NAME EMAX_TINYHAWKF4SX1280
|
||||
#define MANUFACTURER_ID EMAX
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_ACCGYRO_BMI270
|
||||
#define USE_GYRO_SPI_ICM20689
|
||||
#define USE_ACC_SPI_ICM20689
|
||||
#define USE_ACC_SPI_ICM42688P
|
||||
#define USE_GYRO_SPI_ICM42688P
|
||||
#define USE_MAX7456
|
||||
#define USE_RX_SPI
|
||||
#define USE_RX_EXPRESSLRS
|
||||
#define USE_RX_EXPRESSLRS_TELEMETRY
|
||||
#define USE_RX_SX1280
|
||||
#define RX_CHANNELS_AETR
|
||||
#define RX_SPI_DEFAULT_PROTOCOL RX_SPI_EXPRESSLRS
|
||||
#define RX_SPI_DEFAULT_PROTOCOL RX_SPI_EXPRESSLRS
|
||||
#define DEFAULT_RX_FEATURE FEATURE_RX_SPI
|
||||
#define RX_SPI_PROTOCOL EXPRESSLRS
|
||||
#define RX_EXPRESSLRS_TIMER_INSTANCE TIM5
|
||||
#define RX_EXPRESSLRS_SPI_RESET_PIN PA8
|
||||
#define RX_EXPRESSLRS_SPI_BUSY_PIN PA13
|
||||
#define RX_SPI_CS PA15
|
||||
#define RX_SPI_EXTI PC14
|
||||
#define RX_SPI_BIND PB2
|
||||
#define RX_SPI_LED PB9
|
||||
|
||||
#define BEEPER_PIN PC15
|
||||
#define MOTOR1_PIN PB10
|
||||
#define MOTOR2_PIN PB6
|
||||
#define MOTOR3_PIN PB7
|
||||
#define MOTOR4_PIN PB8
|
||||
#define RX_PPM_PIN PA3
|
||||
#define RX_PWM1_PIN PA2
|
||||
#define RX_PWM2_PIN PA9
|
||||
#define RX_PWM3_PIN PA10
|
||||
#define LED_STRIP_PIN PA0
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define LED0_PIN PC13
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define ADC_VBAT_PIN PB0
|
||||
#define ADC_CURR_PIN PB1
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define RX_SPI_CS_PIN PA15
|
||||
#define RX_SPI_EXTI_PIN PC14
|
||||
#define RX_SPI_BIND_PIN PB2
|
||||
#define RX_SPI_LED_PIN PB9
|
||||
#define RX_SPI_EXPRESSLRS_RESET_PIN PA8
|
||||
#define RX_SPI_EXPRESSLRS_BUSY_PIN PA13
|
||||
#define GYRO_1_EXTI_PIN PA1
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA3 , 3, -1) \
|
||||
TIMER_PIN_MAP( 1, PB10, 1, 0) \
|
||||
TIMER_PIN_MAP( 2, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 3, PB7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 4, PB8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 5, PA0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 6, PA2 , 3, -1) \
|
||||
TIMER_PIN_MAP( 7, PA9 , 1, 0) \
|
||||
TIMER_PIN_MAP( 8, PA10, 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 0
|
||||
|
||||
#define RX_SPI_INSTANCE SPI3
|
||||
#define RX_SPI_LED_INVERTED
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_AUTO
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 179
|
||||
#define BEEPER_INVERTED
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW180_DEG
|
||||
//TODO #define EXPRESSLRS_DOMAIN ISM2400
|
|
@ -1,105 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F411
|
||||
|
||||
#define BOARD_NAME EMAX_TINYHAWK_F411RX
|
||||
#define MANUFACTURER_ID EMAX
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_ACCGYRO_BMI270
|
||||
#define USE_GYRO_SPI_ICM20689
|
||||
#define USE_ACC_SPI_ICM20689
|
||||
#define USE_RX_CC2500
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PC15
|
||||
#define MOTOR1_PIN PB10
|
||||
#define MOTOR2_PIN PB6
|
||||
#define MOTOR3_PIN PB7
|
||||
#define MOTOR4_PIN PB8
|
||||
#define RX_PPM_PIN PA3
|
||||
#define RX_PWM1_PIN PA2
|
||||
#define RX_PWM2_PIN PA9
|
||||
#define RX_PWM3_PIN PA10
|
||||
#define LED_STRIP_PIN PA0
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define LED0_PIN PC13
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define ADC_VBAT_PIN PB0
|
||||
#define ADC_CURR_PIN PB1
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define RX_SPI_CS_PIN PA15
|
||||
#define RX_SPI_EXTI_PIN PC14
|
||||
#define RX_SPI_BIND_PIN PB2
|
||||
#define RX_SPI_LED_PIN PB9
|
||||
#define RX_SPI_CC2500_TX_EN_PIN PA8
|
||||
#define RX_SPI_CC2500_LNA_EN_PIN PA13
|
||||
#define RX_SPI_CC2500_ANT_SEL_PIN PA14
|
||||
#define GYRO_1_EXTI_PIN PA1
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA3 , 3, -1) \
|
||||
TIMER_PIN_MAP( 1, PB10, 1, 0) \
|
||||
TIMER_PIN_MAP( 2, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 3, PB7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 4, PB8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 5, PA0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 6, PA2 , 3, -1) \
|
||||
TIMER_PIN_MAP( 7, PA9 , 1, 0) \
|
||||
TIMER_PIN_MAP( 8, PA10, 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 0
|
||||
|
||||
//TODO #define RX_SPI_PROTOCOL FRSKY_X
|
||||
#define RX_SPI_INSTANCE SPI3
|
||||
#define RX_SPI_LED_INVERTED
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_AUTO
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 179
|
||||
#define BEEPER_INVERTED
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
//TODO #define CC2500_SPI_CHIP_DETECT OFF
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW180_DEG
|
||||
#define GYRO_2_SPI_INSTANCE SPI1
|
|
@ -1,123 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F7X2
|
||||
|
||||
#define BOARD_NAME EXF722DUAL
|
||||
#define MANUFACTURER_ID EXUA
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_ICM20689
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_ICM20689
|
||||
#define USE_BARO_BMP280
|
||||
#define USE_BARO_DPS310
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_M25P16
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PC15
|
||||
#define MOTOR1_PIN PC8
|
||||
#define MOTOR2_PIN PC6
|
||||
#define MOTOR3_PIN PC9
|
||||
#define MOTOR4_PIN PC7
|
||||
#define MOTOR5_PIN PB6
|
||||
#define MOTOR6_PIN PB7
|
||||
#define MOTOR7_PIN PB1
|
||||
#define MOTOR8_PIN PB0
|
||||
#define RX_PPM_PIN PA3
|
||||
#define LED_STRIP_PIN PA1
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PB10
|
||||
#define UART4_TX_PIN PC10
|
||||
#define UART5_TX_PIN PC12
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART3_RX_PIN PB11
|
||||
#define UART4_RX_PIN PC11
|
||||
#define UART5_RX_PIN PD2
|
||||
#define I2C2_SCL_PIN PB10
|
||||
#define I2C2_SDA_PIN PB11
|
||||
#define LED0_PIN PC4
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define CAMERA_CONTROL_PIN PA0
|
||||
#define ADC_VBAT_PIN PC1
|
||||
#define ADC_RSSI_PIN PC0
|
||||
#define ADC_CURR_PIN PC2
|
||||
#define PINIO1_PIN PC13
|
||||
#define PINIO2_PIN PC14
|
||||
#define PINIO3_PIN PB8
|
||||
#define FLASH_CS_PIN PB9
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define GYRO_1_EXTI_PIN PA8
|
||||
#define GYRO_2_EXTI_PIN PB2
|
||||
#define GYRO_1_CS_PIN PA15
|
||||
#define GYRO_2_CS_PIN PC3
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 1, PA3 , 3, -1) \
|
||||
TIMER_PIN_MAP( 2, PC8 , 2, 1) \
|
||||
TIMER_PIN_MAP( 3, PC6 , 2, 0) \
|
||||
TIMER_PIN_MAP( 4, PC9 , 2, 0) \
|
||||
TIMER_PIN_MAP( 5, PC7 , 2, 1) \
|
||||
TIMER_PIN_MAP( 6, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 7, PB7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 8, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 9, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP(10, PA1 , 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC3_DMA_OPT 0
|
||||
|
||||
#define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH
|
||||
#define MAG_I2C_INSTANCE (I2CDEV_2)
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_2)
|
||||
|
||||
#define USE_ADC
|
||||
#define ADC_INSTANCE ADC3
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
//TODO #define MOTOR_PWM_PROTOCOL DSHOT600
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 100
|
||||
#define BEEPER_INVERTED
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define FLASH_SPI_INSTANCE SPI3
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW0_DEG
|
||||
#define GYRO_2_SPI_INSTANCE SPI1
|
||||
#define GYRO_2_ALIGN CW90_DEG
|
|
@ -1,119 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F405
|
||||
|
||||
#define BOARD_NAME EXUAVF4PRO
|
||||
#define MANUFACTURER_ID EXUA
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PB4
|
||||
#define MOTOR1_PIN PB0
|
||||
#define MOTOR2_PIN PB1
|
||||
#define MOTOR3_PIN PA3
|
||||
#define MOTOR4_PIN PA2
|
||||
#define MOTOR5_PIN PA1
|
||||
#define MOTOR6_PIN PA8
|
||||
#define RX_PPM_PIN PB8
|
||||
#define RX_PWM1_PIN PB8
|
||||
#define RX_PWM2_PIN PB9
|
||||
#define RX_PWM3_PIN PC6
|
||||
#define RX_PWM4_PIN PC7
|
||||
#define RX_PWM5_PIN PC8
|
||||
#define RX_PWM6_PIN PC9
|
||||
#define SONAR_TRIGGER_PIN PA1
|
||||
#define SONAR_ECHO_PIN PA8
|
||||
#define LED_STRIP_PIN PB6
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART3_TX_PIN PB10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART3_RX_PIN PB11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART6_RX_PIN PC7
|
||||
#define INVERTER_PIN_UART6 PC8
|
||||
#define LED0_PIN PB5
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI3_SCK_PIN PC10
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI3_SDI_PIN PC11
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI3_SDO_PIN PC12
|
||||
#define ESCSERIAL_PIN PB14
|
||||
#define ADC_VBAT_PIN PC2
|
||||
#define ADC_RSSI_PIN PA0
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define FLASH_CS_PIN PB3
|
||||
#define MAX7456_SPI_CS_PIN PA15
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
#define USB_DETECT_PIN PC5
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PB8 , 2, -1) \
|
||||
TIMER_PIN_MAP( 1, PB9 , 1, -1) \
|
||||
TIMER_PIN_MAP( 2, PC6 , 2, 0) \
|
||||
TIMER_PIN_MAP( 3, PC7 , 2, 0) \
|
||||
TIMER_PIN_MAP( 4, PC8 , 2, 0) \
|
||||
TIMER_PIN_MAP( 5, PC9 , 2, 0) \
|
||||
TIMER_PIN_MAP( 6, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 7, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 8, PA3 , 1, 1) \
|
||||
TIMER_PIN_MAP( 9, PA2 , 1, 0) \
|
||||
TIMER_PIN_MAP(10, PA1 , 2, 0) \
|
||||
TIMER_PIN_MAP(11, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP(12, PA8 , 1, 0) \
|
||||
TIMER_PIN_MAP(13, PA9 , 1, 0) \
|
||||
TIMER_PIN_MAP(14, PA10, 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC2_DMA_OPT 1
|
||||
|
||||
#define MAG_I2C_INSTANCE (I2CDEV_2)
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_2)
|
||||
#define USE_ADC
|
||||
#define ADC_INSTANCE ADC2
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define BEEPER_INVERTED
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
#define MAX7456_SPI_INSTANCE SPI3
|
||||
#define DASHBOARD_I2C_INSTANCE (I2CDEV_2)
|
||||
#define PINIO1_BOX 40
|
||||
#define FLASH_SPI_INSTANCE SPI3
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW90_DEG
|
||||
#define GYRO_1_ALIGN_YAW 900
|
||||
#define GYRO_2_SPI_INSTANCE SPI1
|
|
@ -1,123 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F405
|
||||
|
||||
#define BOARD_NAME F4BY
|
||||
#define MANUFACTURER_ID FOSS
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_BARO_MS5611
|
||||
#define USE_SDCARD
|
||||
|
||||
#define BEEPER_PIN PE5
|
||||
#define MOTOR1_PIN PA0
|
||||
#define MOTOR2_PIN PA1
|
||||
#define MOTOR3_PIN PA2
|
||||
#define MOTOR4_PIN PA3
|
||||
#define MOTOR5_PIN PE9
|
||||
#define MOTOR6_PIN PE11
|
||||
#define MOTOR7_PIN PE13
|
||||
#define MOTOR8_PIN PE14
|
||||
#define RX_PWM1_PIN PC9
|
||||
#define RX_PWM2_PIN PC8
|
||||
#define RX_PWM3_PIN PC6
|
||||
#define RX_PWM4_PIN PC7
|
||||
#define RX_PWM5_PIN PD15
|
||||
#define RX_PWM6_PIN PD14
|
||||
#define RX_PWM7_PIN PD13
|
||||
#define RX_PWM8_PIN PD12
|
||||
#define UART1_TX_PIN PB6
|
||||
#define UART2_TX_PIN PD5
|
||||
#define UART3_TX_PIN PD8
|
||||
#define UART4_TX_PIN PC10
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART1_RX_PIN PB7
|
||||
#define UART2_RX_PIN PD6
|
||||
#define UART3_RX_PIN PD9
|
||||
#define UART4_RX_PIN PC11
|
||||
#define UART6_RX_PIN PC7
|
||||
#define INVERTER_PIN_UART6 PD3
|
||||
#define I2C2_SCL_PIN PB10
|
||||
#define I2C2_SDA_PIN PB11
|
||||
#define LED0_PIN PE3
|
||||
#define LED1_PIN PE2
|
||||
#define LED2_PIN PE1
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define ESCSERIAL_PIN PA0
|
||||
#define ADC_VBAT_PIN PC3
|
||||
#define ADC_RSSI_PIN PC1
|
||||
#define ADC_CURR_PIN PC2
|
||||
#define SDCARD_SPI_CS_PIN PE15
|
||||
#define GYRO_1_EXTI_PIN PB0
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
#define USB_DETECT_PIN PA9
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PC9 , 1, 0) \
|
||||
TIMER_PIN_MAP( 1, PC8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 2, PC6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 3, PC7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 4, PD15, 1, -1) \
|
||||
TIMER_PIN_MAP( 5, PD14, 1, 0) \
|
||||
TIMER_PIN_MAP( 6, PD13, 1, 0) \
|
||||
TIMER_PIN_MAP( 7, PD12, 1, 0) \
|
||||
TIMER_PIN_MAP( 8, PA0 , 1, 0) \
|
||||
TIMER_PIN_MAP( 9, PA1 , 1, 0) \
|
||||
TIMER_PIN_MAP(10, PA2 , 2, 0) \
|
||||
TIMER_PIN_MAP(11, PA3 , 2, 0) \
|
||||
TIMER_PIN_MAP(12, PE9 , 1, 0) \
|
||||
TIMER_PIN_MAP(13, PE11, 1, 0) \
|
||||
TIMER_PIN_MAP(14, PE13, 1, 0) \
|
||||
TIMER_PIN_MAP(15, PE14, 1, 0) \
|
||||
TIMER_PIN_MAP(16, PE6 , 1, -1)
|
||||
|
||||
|
||||
|
||||
#define SPI2_TX_DMA_OPT 0
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define MAG_I2C_INSTANCE (I2CDEV_2)
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_2)
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define USE_SDCARD_SPI
|
||||
#define SDCARD_SPI_INSTANCE SPI2
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
#define DASHBOARD_I2C_INSTANCE (I2CDEV_2)
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW90_DEG
|
||||
#define GYRO_1_ALIGN_YAW 900
|
|
@ -1,89 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F405
|
||||
|
||||
#define BOARD_NAME FENIX_F405
|
||||
#define MANUFACTURER_ID FOSS
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_W25M
|
||||
#define USE_MAX7456
|
||||
|
||||
#define MOTOR1_PIN PB1
|
||||
#define MOTOR2_PIN PB0
|
||||
#define MOTOR3_PIN PA3
|
||||
#define MOTOR4_PIN PA2
|
||||
#define LED_STRIP_PIN PC8
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART3_TX_PIN PB10
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART3_RX_PIN PB11
|
||||
#define UART6_RX_PIN PC7
|
||||
#define LED0_PIN PA8
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PC10
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PC11
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PC12
|
||||
#define ADC_VBAT_PIN PC4
|
||||
#define ADC_CURR_PIN PA1
|
||||
#define FLASH_CS_PIN PB12
|
||||
#define MAX7456_SPI_CS_PIN PA4
|
||||
#define GYRO_1_EXTI_PIN PB6
|
||||
#define GYRO_1_CS_PIN PB3
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PB1 , 1, 0) \
|
||||
TIMER_PIN_MAP( 1, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 2, PA3 , 1, 1) \
|
||||
TIMER_PIN_MAP( 3, PA2 , 1, 0) \
|
||||
TIMER_PIN_MAP( 4, PC8 , 2, 1)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 0
|
||||
|
||||
//TODO #define SERIALRX_PROVIDER CRSF
|
||||
#define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_OFF
|
||||
//TODO #define MOTOR_PWM_PROTOCOL DSHOT300
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 270
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
#define MAX7456_SPI_INSTANCE SPI1
|
||||
#define FLASH_SPI_INSTANCE SPI2
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI3
|
||||
#define GYRO_1_ALIGN CW0_DEG_FLIP
|
||||
#define GYRO_1_ALIGN_PITCH 1800
|
|
@ -1,97 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F405
|
||||
|
||||
#define BOARD_NAME FF_FORTINIF4
|
||||
#define MANUFACTURER_ID FFPV
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_ICM20689
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_ICM20689
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_MAX7456
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_W25Q128FV
|
||||
|
||||
#define BEEPER_PIN PB4
|
||||
#define MOTOR1_PIN PB0
|
||||
#define MOTOR2_PIN PB1
|
||||
#define MOTOR3_PIN PA3
|
||||
#define MOTOR4_PIN PA2
|
||||
#define RX_PPM_PIN PB9
|
||||
#define LED_STRIP_PIN PB7
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART3_TX_PIN PB10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART5_TX_PIN PC12
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART3_RX_PIN PB11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART5_RX_PIN PD2
|
||||
#define UART6_RX_PIN PC7
|
||||
#define INVERTER_PIN_UART3 PC15
|
||||
#define LED0_PIN PB5
|
||||
#define LED1_PIN PB6
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI3_SCK_PIN PC10
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI3_SDI_PIN PC11
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI3_SDO_PIN PC12
|
||||
#define ESCSERIAL_PIN PB0
|
||||
#define CAMERA_CONTROL_PIN PB7
|
||||
#define ADC_VBAT_PIN PC2
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define FLASH_CS_PIN PB3
|
||||
#define MAX7456_SPI_CS_PIN PB3
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define GYRO_1_CS_PIN PA8
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 1, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 2, PA3 , 1, 1) \
|
||||
TIMER_PIN_MAP( 3, PA2 , 1, 0) \
|
||||
TIMER_PIN_MAP( 4, PB9 , 1, -1) \
|
||||
TIMER_PIN_MAP( 5, PB7 , 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define BEEPER_INVERTED
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
#define MAX7456_SPI_INSTANCE SPI3
|
||||
#define FLASH_SPI_INSTANCE SPI3
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW180_DEG
|
||||
#define GYRO_1_ALIGN_YAW 1800
|
|
@ -1,99 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F405
|
||||
|
||||
#define BOARD_NAME FF_FORTINIF4_REV03
|
||||
#define MANUFACTURER_ID FFPV
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_ICM20689
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_ICM20689
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PB3
|
||||
#define MOTOR1_PIN PB0
|
||||
#define MOTOR2_PIN PB1
|
||||
#define MOTOR3_PIN PB11
|
||||
#define MOTOR4_PIN PB10
|
||||
#define RX_PPM_PIN PB9
|
||||
#define LED_STRIP_PIN PB6
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PC10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART5_TX_PIN PC12
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART1_RX_PIN PB7
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART3_RX_PIN PC11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART5_RX_PIN PD2
|
||||
#define UART6_RX_PIN PC7
|
||||
#define INVERTER_PIN_UART3 PC15
|
||||
#define I2C3_SCL_PIN PA8
|
||||
#define I2C3_SDA_PIN PC9
|
||||
#define LED0_PIN PB5
|
||||
#define LED1_PIN PB4
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define ESCSERIAL_PIN PB0
|
||||
#define CAMERA_CONTROL_PIN PA10
|
||||
#define ADC_VBAT_PIN PC2
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 1, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 2, PB11, 1, 1) \
|
||||
TIMER_PIN_MAP( 3, PB10, 1, 0) \
|
||||
TIMER_PIN_MAP( 4, PB9 , 1, -1) \
|
||||
TIMER_PIN_MAP( 5, PA10, 1, 0) \
|
||||
TIMER_PIN_MAP( 6, PB6 , 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define BEEPER_INVERTED
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define DASHBOARD_I2C_INSTANCE (I2CDEV_3)
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW180_DEG
|
||||
#define GYRO_1_ALIGN_YAW 1800
|
|
@ -1,83 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F405
|
||||
|
||||
#define BOARD_NAME FF_PIKOF4
|
||||
#define MANUFACTURER_ID FFPV
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
|
||||
#define BEEPER_PIN PA14
|
||||
#define MOTOR1_PIN PA3
|
||||
#define MOTOR2_PIN PB0
|
||||
#define MOTOR3_PIN PA2
|
||||
#define MOTOR4_PIN PB1
|
||||
#define LED_STRIP_PIN PB7
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART3_TX_PIN PB10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART3_RX_PIN PB11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART6_RX_PIN PC7
|
||||
#define INVERTER_PIN_UART3 PC8
|
||||
#define LED0_PIN PA15
|
||||
#define LED1_PIN PB6
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI3_SCK_PIN PC10
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI3_SDI_PIN PC11
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI3_SDO_PIN PC12
|
||||
#define ESCSERIAL_PIN PA3
|
||||
#define ADC_VBAT_PIN PC2
|
||||
#define FLASH_CS_PIN PB3
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA3 , 1, 1) \
|
||||
TIMER_PIN_MAP( 1, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 2, PA2 , 1, 0) \
|
||||
TIMER_PIN_MAP( 3, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 4, PB7 , 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define BEEPER_INVERTED
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
#define FLASH_SPI_INSTANCE SPI3
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW180_DEG
|
||||
#define GYRO_1_ALIGN_YAW 1800
|
|
@ -1,91 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F405
|
||||
|
||||
#define BOARD_NAME FF_PIKOF4OSD
|
||||
#define MANUFACTURER_ID FFPV
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PA14
|
||||
#define MOTOR1_PIN PA3
|
||||
#define MOTOR2_PIN PB0
|
||||
#define MOTOR3_PIN PA2
|
||||
#define MOTOR4_PIN PB1
|
||||
#define MOTOR5_PIN PB14
|
||||
#define MOTOR6_PIN PB15
|
||||
#define LED_STRIP_PIN PB7
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART3_TX_PIN PB10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART3_RX_PIN PB11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART6_RX_PIN PC7
|
||||
#define INVERTER_PIN_UART3 PC3
|
||||
#define LED0_PIN PB5
|
||||
#define LED1_PIN PB4
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI3_SCK_PIN PC10
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI3_SDI_PIN PC11
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI3_SDO_PIN PC12
|
||||
#define ESCSERIAL_PIN PA3
|
||||
#define ADC_VBAT_PIN PC2
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define MAX7456_SPI_CS_PIN PA4
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define GYRO_1_CS_PIN PA15
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PA3 , 1, 1) \
|
||||
TIMER_PIN_MAP( 1, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 2, PA2 , 1, 0) \
|
||||
TIMER_PIN_MAP( 3, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 4, PB14, 2, 0) \
|
||||
TIMER_PIN_MAP( 5, PB15, 1, 0) \
|
||||
TIMER_PIN_MAP( 6, PB7 , 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 250
|
||||
#define BEEPER_INVERTED
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
#define MAX7456_SPI_INSTANCE SPI1
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI3
|
||||
#define GYRO_1_ALIGN CW180_DEG
|
||||
#define GYRO_1_ALIGN_YAW 1800
|
|
@ -1,123 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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/>.
|
||||
*/
|
||||
|
||||
#define FC_TARGET_MCU STM32F405
|
||||
|
||||
#define BOARD_NAME FF_RACEPIT
|
||||
#define MANUFACTURER_ID FFPV
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_M25P16
|
||||
#define USE_MAX7456
|
||||
|
||||
#define LED0_PIN PB9
|
||||
#define LED1_PIN PB8
|
||||
#define BEEPER_PIN PC3
|
||||
#define BEEPER_INVERTED
|
||||
#define PINIO1_PIN PC0
|
||||
#define PINIO2_PIN PC8
|
||||
#define CAMERA_CONTROL_PIN PA10
|
||||
|
||||
#define I2C3_SCL_PIN PA8
|
||||
#define I2C3_SDA_PIN PC9
|
||||
#define USE_I2C3_PULLUP ON
|
||||
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI1_SDO_PIN PA7
|
||||
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI2_SDO_PIN PB15
|
||||
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI3_SDO_PIN PB5
|
||||
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW90_DEG_FLIP
|
||||
|
||||
#define FLASH_SPI_INSTANCE SPI3
|
||||
#define FLASH_CS_PIN PA15
|
||||
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PB0 , 2, 0 ) \
|
||||
TIMER_PIN_MAP( 1, PB1 , 2, 0 ) \
|
||||
TIMER_PIN_MAP( 2, PB11, 1, 1 ) \
|
||||
TIMER_PIN_MAP( 3, PB10, 1, 0 ) \
|
||||
TIMER_PIN_MAP( 4, PA10, 1, -1) \
|
||||
TIMER_PIN_MAP( 5, PB6 , 1, 0 )
|
||||
|
||||
|
||||
#define MOTOR1_PIN PB0
|
||||
#define MOTOR2_PIN PB1
|
||||
#define MOTOR3_PIN PB11
|
||||
#define MOTOR4_PIN PB10
|
||||
#define LED_STRIP_PIN PB6
|
||||
|
||||
#define ADC2_DMA_OPT 1
|
||||
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
//TODO #define MOTOR_PWM_PROTOCOL Dshot600
|
||||
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART1_RX_PIN PB7
|
||||
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART2_RX_PIN PA3
|
||||
|
||||
#define UART3_TX_PIN PC10
|
||||
#define UART3_RX_PIN PC11
|
||||
#define INVERTER_PIN_UART3 PC15
|
||||
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART4_RX_PIN PA1
|
||||
|
||||
#define UART5_TX_PIN PC12
|
||||
#define UART5_RX_PIN PD2
|
||||
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART6_RX_PIN PC7
|
||||
|
||||
#define ADC_VBAT_PIN PC2
|
||||
#define ADC_CURR_PIN PC1
|
||||
|
||||
#define ESCSERIAL_PIN PB0
|
||||
|
||||
#define PINIO2_CONFIG 129
|
||||
#define PINIO1_BOX 40
|
||||
#define PINIO2_BOX 41
|
||||
//TODO #define TLM_HALFDUPLEX OFF
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define USE_ADC
|
||||
#define ADC_INSTANCE ADC2
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
|
@ -1,89 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F7X2
|
||||
|
||||
#define BOARD_NAME FF_RACEPITF7
|
||||
#define MANUFACTURER_ID FFPV
|
||||
|
||||
#define BEEPER_PIN PC3
|
||||
#define MOTOR1_PIN PB0
|
||||
#define MOTOR2_PIN PB1
|
||||
#define MOTOR3_PIN PB11
|
||||
#define MOTOR4_PIN PB10
|
||||
#define LED_STRIP_PIN PB6
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PC10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART5_TX_PIN PC12
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART1_RX_PIN PB7
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART3_RX_PIN PC11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART5_RX_PIN PD2
|
||||
#define UART6_RX_PIN PC7
|
||||
#define LED0_PIN PB9
|
||||
#define LED1_PIN PB8
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define ADC_VBAT_PIN PC2
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define PINIO1_PIN PC0
|
||||
#define FLASH_CS_PIN PA15
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 1, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 2, PB11, 1, 1) \
|
||||
TIMER_PIN_MAP( 3, PB10, 1, 0) \
|
||||
TIMER_PIN_MAP( 4, PB6 , 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 170
|
||||
#define BEEPER_INVERTED
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define PINIO1_BOX 40
|
||||
#define FLASH_SPI_INSTANCE SPI3
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW180_DEG_FLIP
|
||||
#define GYRO_1_ALIGN_PITCH 1800
|
||||
#define GYRO_1_ALIGN_YAW 1800
|
|
@ -1,97 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F7X2
|
||||
|
||||
#define BOARD_NAME FF_RACEPITF7_MINI
|
||||
#define MANUFACTURER_ID FFPV
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_W25Q128FV
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PC3
|
||||
#define MOTOR1_PIN PB0
|
||||
#define MOTOR2_PIN PB1
|
||||
#define MOTOR3_PIN PB11
|
||||
#define MOTOR4_PIN PB10
|
||||
#define LED_STRIP_PIN PB6
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PC10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART5_TX_PIN PC12
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART1_RX_PIN PB7
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART3_RX_PIN PC11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART5_RX_PIN PD2
|
||||
#define UART6_RX_PIN PC7
|
||||
#define LED0_PIN PB9
|
||||
#define LED1_PIN PB8
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define ADC_VBAT_PIN PC2
|
||||
#define ADC_CURR_PIN PC1
|
||||
#define PINIO1_PIN PC0
|
||||
#define FLASH_CS_PIN PA15
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 1, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 2, PB11, 1, 1) \
|
||||
TIMER_PIN_MAP( 3, PB10, 1, 0) \
|
||||
TIMER_PIN_MAP( 4, PB6 , 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 170
|
||||
#define BEEPER_INVERTED
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define PINIO1_BOX 40
|
||||
#define FLASH_SPI_INSTANCE SPI3
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW180_DEG
|
||||
#define GYRO_1_ALIGN_PITCH 1800
|
||||
#define GYRO_1_ALIGN_YAW 1800
|
|
@ -1,122 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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/>.
|
||||
*/
|
||||
|
||||
#define FC_TARGET_MCU STM32F405
|
||||
|
||||
#define BOARD_NAME FF_RACEPIT_MINI
|
||||
#define MANUFACTURER_ID FFPV
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_W25Q128FV
|
||||
#define USE_MAX7456
|
||||
|
||||
#define LED0_PIN PB9
|
||||
#define LED1_PIN PB8
|
||||
#define BEEPER_PIN PC3
|
||||
#define BEEPER_INVERTED
|
||||
#define PINIO1_PIN PC0
|
||||
#define PINIO2_PIN PC8
|
||||
|
||||
#define I2C3_SCL_PIN PA8
|
||||
#define I2C3_SDA_PIN PC9
|
||||
#define USE_I2C3_PULLUP ON
|
||||
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI1_SDO_PIN PA7
|
||||
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI2_SDO_PIN PB15
|
||||
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI3_SDO_PIN PB5
|
||||
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW180_DEG
|
||||
|
||||
#define FLASH_SPI_INSTANCE SPI3
|
||||
#define FLASH_CS_PIN PA15
|
||||
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PB0 , 2, 0 ) \
|
||||
TIMER_PIN_MAP( 1, PB1 , 2, 0 ) \
|
||||
TIMER_PIN_MAP( 2, PB11, 1, 1 ) \
|
||||
TIMER_PIN_MAP( 3, PB10, 1, 0 ) \
|
||||
TIMER_PIN_MAP( 4, PA10, 1, -1) \
|
||||
TIMER_PIN_MAP( 5, PB6 , 1, 0 )
|
||||
|
||||
|
||||
#define MOTOR1_PIN PB0
|
||||
#define MOTOR2_PIN PB1
|
||||
#define MOTOR3_PIN PB11
|
||||
#define MOTOR4_PIN PB10
|
||||
#define LED_STRIP_PIN PB6
|
||||
|
||||
#define ADC2_DMA_OPT 1
|
||||
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
//TODO #define MOTOR_PWM_PROTOCOL Dshot600
|
||||
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART1_RX_PIN PB7
|
||||
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART2_RX_PIN PA3
|
||||
|
||||
#define UART3_TX_PIN PC10
|
||||
#define UART3_RX_PIN PC11
|
||||
#define INVERTER_PIN_UART3 PC15
|
||||
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART4_RX_PIN PA1
|
||||
|
||||
#define UART5_TX_PIN PC12
|
||||
#define UART5_RX_PIN PD2
|
||||
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART6_RX_PIN PC7
|
||||
|
||||
#define ADC_VBAT_PIN PC2
|
||||
#define ADC_CURR_PIN PC1
|
||||
|
||||
#define ESCSERIAL_PIN PB0
|
||||
|
||||
#define PINIO2_CONFIG 129
|
||||
#define PINIO1_BOX 40
|
||||
#define PINIO2_BOX 41
|
||||
//TODO #define TLM_HALFDUPLEX OFF
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define USE_ADC
|
||||
#define ADC_INSTANCE ADC2
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
|
@ -1,99 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F405
|
||||
|
||||
#define BOARD_NAME FISHDRONEF4
|
||||
#define MANUFACTURER_ID LEGA
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
#define USE_MAX7456
|
||||
#define USE_SDCARD
|
||||
|
||||
#define BEEPER_PIN PC15
|
||||
#define MOTOR1_PIN PB8
|
||||
#define MOTOR2_PIN PA2
|
||||
#define MOTOR3_PIN PA15
|
||||
#define MOTOR4_PIN PA3
|
||||
#define RX_PPM_PIN PB0
|
||||
#define LED_STRIP_PIN PA0
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART3_TX_PIN PB10
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART3_RX_PIN PB11
|
||||
#define UART6_RX_PIN PC7
|
||||
#define INVERTER_PIN_UART6 PC8
|
||||
#define LED0_PIN PC13
|
||||
#define LED1_PIN PC14
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PC10
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PC2
|
||||
#define SPI3_SDI_PIN PC11
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PC3
|
||||
#define SPI3_SDO_PIN PC12
|
||||
#define ESCSERIAL_PIN PB0
|
||||
#define ADC_VBAT_PIN PC0
|
||||
#define ADC_RSSI_PIN PC1
|
||||
#define SDCARD_SPI_CS_PIN PB9
|
||||
#define SDCARD_DETECT_PIN PB7
|
||||
#define FLASH_CS_PIN PD2
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
#define USB_DETECT_PIN PA8
|
||||
#define VTX_CS_PIN PB3
|
||||
#define VTX_DATA_PIN PB5
|
||||
#define VTX_CLK_PIN PB4
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 1, PB8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 2, PA2 , 1, 0) \
|
||||
TIMER_PIN_MAP( 3, PA15, 1, 0) \
|
||||
TIMER_PIN_MAP( 4, PA3 , 1, 1) \
|
||||
TIMER_PIN_MAP( 5, PA0 , 2, 0)
|
||||
|
||||
|
||||
|
||||
#define SPI3_TX_DMA_OPT 0
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD
|
||||
#define BEEPER_INVERTED
|
||||
#define SDCARD_DETECT_INVERTED
|
||||
#define USE_SDCARD_SPI
|
||||
#define SDCARD_SPI_INSTANCE SPI3
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define FLASH_SPI_INSTANCE SPI3
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW90_DEG
|
||||
#define GYRO_1_ALIGN_YAW 900
|
|
@ -1,67 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F411
|
||||
|
||||
#define BOARD_NAME FLOWBOX
|
||||
#define MANUFACTURER_ID NERC
|
||||
|
||||
#define BEEPER_PIN PB1
|
||||
#define MOTOR1_PIN PB10
|
||||
#define MOTOR2_PIN PA0
|
||||
#define MOTOR3_PIN PB6
|
||||
#define MOTOR4_PIN PB7
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define LED0_PIN PC13
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define FLASH_CS_PIN PA15
|
||||
#define GYRO_1_EXTI_PIN PA1
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 1, PB10, 1, 0) \
|
||||
TIMER_PIN_MAP( 2, PB6 , 1, 0) \
|
||||
TIMER_PIN_MAP( 3, PB7 , 1, 0) \
|
||||
TIMER_PIN_MAP( 4, PA0 , 1, 0)
|
||||
|
||||
|
||||
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define BEEPER_PWM_HZ 2185
|
||||
#define BEEPER_INVERTED
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
#define FLASH_SPI_INSTANCE SPI3
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW180_DEG
|
||||
#define GYRO_1_ALIGN_YAW 1800
|
|
@ -1,69 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F411
|
||||
|
||||
#define BOARD_NAME FLOWBOXV2
|
||||
#define MANUFACTURER_ID NERC
|
||||
|
||||
#define BEEPER_PIN PB8
|
||||
#define MOTOR1_PIN PA0
|
||||
#define MOTOR2_PIN PB0
|
||||
#define MOTOR3_PIN PB1
|
||||
#define MOTOR4_PIN PB10
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define LED0_PIN PC13
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI3_SCK_PIN PB3
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI3_SDI_PIN PB4
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define SDCARD_SPI_CS_PIN PA15
|
||||
#define GYRO_1_EXTI_PIN PA1
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PB8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 1, PA0 , 1, 0) \
|
||||
TIMER_PIN_MAP( 2, PB0 , 2, 0) \
|
||||
TIMER_PIN_MAP( 3, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 4, PB10, 1, 0)
|
||||
|
||||
|
||||
|
||||
#define SPI3_TX_DMA_OPT 0
|
||||
#define ADC1_DMA_OPT 1
|
||||
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD
|
||||
#define BEEPER_PWM_HZ 2185
|
||||
#define BEEPER_INVERTED
|
||||
#define USE_SDCARD_SPI
|
||||
#define SDCARD_SPI_INSTANCE SPI3
|
||||
#define SYSTEM_HSE_MHZ 8
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW180_DEG
|
||||
#define GYRO_1_ALIGN_YAW 1800
|
|
@ -1,125 +0,0 @@
|
|||
/*
|
||||
* This file is part of Betaflight.
|
||||
*
|
||||
* Betaflight is 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.
|
||||
*
|
||||
* Betaflight is distributed in the hope that it 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 FC_TARGET_MCU STM32F7X2
|
||||
|
||||
#define BOARD_NAME FLYCOLORF7
|
||||
#define MANUFACTURER_ID FLCO
|
||||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define USE_FLASH
|
||||
#define USE_FLASH_W25Q128FV
|
||||
#define USE_MAX7456
|
||||
|
||||
#define BEEPER_PIN PC14
|
||||
#define MOTOR1_PIN PB1
|
||||
#define MOTOR2_PIN PB4
|
||||
#define MOTOR3_PIN PB3
|
||||
#define MOTOR4_PIN PA15
|
||||
#define MOTOR5_PIN PC8
|
||||
#define MOTOR6_PIN PC9
|
||||
#define RX_PPM_PIN PC6
|
||||
#define LED_STRIP_PIN PA8
|
||||
#define UART1_TX_PIN PA9
|
||||
#define UART2_TX_PIN PA2
|
||||
#define UART3_TX_PIN PB10
|
||||
#define UART4_TX_PIN PA0
|
||||
#define UART5_TX_PIN PC12
|
||||
#define UART6_TX_PIN PC6
|
||||
#define UART1_RX_PIN PA10
|
||||
#define UART2_RX_PIN PA3
|
||||
#define UART3_RX_PIN PB11
|
||||
#define UART4_RX_PIN PA1
|
||||
#define UART5_RX_PIN PD2
|
||||
#define UART6_RX_PIN PC7
|
||||
#define I2C1_SCL_PIN PB6
|
||||
#define I2C1_SDA_PIN PB7
|
||||
#define LED0_PIN PC15
|
||||
#define SPI1_SCK_PIN PA5
|
||||
#define SPI2_SCK_PIN PB13
|
||||
#define SPI3_SCK_PIN PC10
|
||||
#define SPI1_SDI_PIN PA6
|
||||
#define SPI2_SDI_PIN PB14
|
||||
#define SPI3_SDI_PIN PC11
|
||||
#define SPI1_SDO_PIN PA7
|
||||
#define SPI2_SDO_PIN PB15
|
||||
#define SPI3_SDO_PIN PB5
|
||||
#define CAMERA_CONTROL_PIN PB8
|
||||
#define ADC_VBAT_PIN PC1
|
||||
#define ADC_RSSI_PIN PC2
|
||||
#define ADC_CURR_PIN PC0
|
||||
#define PINIO1_PIN PB0
|
||||
#define PINIO2_PIN PB9
|
||||
#define FLASH_CS_PIN PC13
|
||||
#define MAX7456_SPI_CS_PIN PB12
|
||||
#define GYRO_1_EXTI_PIN PC3
|
||||
#define GYRO_2_EXTI_PIN PC4
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
#define GYRO_2_CS_PIN PB2
|
||||
|
||||
#define TIMER_PIN_MAPPING \
|
||||
TIMER_PIN_MAP( 0, PC6 , 2, 0) \
|
||||
TIMER_PIN_MAP( 1, PB1 , 2, 0) \
|
||||
TIMER_PIN_MAP( 2, PB4 , 1, 0) \
|
||||
TIMER_PIN_MAP( 3, PB3 , 1, 0) \
|
||||
TIMER_PIN_MAP( 4, PA15, 1, 0) \
|
||||
TIMER_PIN_MAP( 5, PC8 , 2, 0) \
|
||||
TIMER_PIN_MAP( 6, PC9 , 2, 0) \
|
||||
TIMER_PIN_MAP( 7, PA8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 8, PB8 , 1, 0) \
|
||||
TIMER_PIN_MAP( 9, PB10, 1, 0) \
|
||||
TIMER_PIN_MAP(10, PA2 , 2, 0) \
|
||||
TIMER_PIN_MAP(11, PA3 , 2, 1)
|
||||
|
||||
|
||||
|
||||
#define ADC3_DMA_OPT 1
|
||||
|
||||
#define MAG_I2C_INSTANCE (I2CDEV_1)
|
||||
#define USE_BARO
|
||||
#define BARO_I2C_INSTANCE (I2CDEV_1)
|
||||
#define USE_ADC
|
||||
#define ADC_INSTANCE ADC3
|
||||
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
|
||||
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
|
||||
//TODO #define MOTOR_PWM_PROTOCOL DSHOT600
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SCALE 170
|
||||
#define BEEPER_INVERTED
|
||||
#define DEFAULT_PID_PROCESS_DENOM 4
|
||||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define PINIO1_BOX 40
|
||||
#define PINIO2_BOX 41
|
||||
#define FLASH_SPI_INSTANCE SPI3
|
||||
#define USE_SPI_GYRO
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW180_DEG_FLIP
|
||||
#define GYRO_1_ALIGN_PITCH 1800
|
||||
#define GYRO_1_ALIGN_YAW 1800
|
||||
#define GYRO_2_SPI_INSTANCE SPI1
|
||||
#define GYRO_2_ALIGN CW270_DEG
|
||||
#define GYRO_2_ALIGN_YAW 2700
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue