Add TRANSTECF411 Target

This commit is contained in:
unknown 2019-09-26 13:51:56 +08:00
parent 08e8afa090
commit 319f55d878
7 changed files with 229 additions and 0 deletions

View File

@ -0,0 +1,34 @@
# Board - TRANSTEC F411 Series
## Description
TransTECF411 was designed for easily use.
There will have three version of TRANSTECF411 30x30(Normal) / 20x20(Normal) / 20x20(HD).
## MCU, Sensors and Features
### Hardware
- MCU: STM32F411
- IMU: MPU-6000
- 4 DSHOT motors outputs
- 2 hardware UARTs
- Onboard regulator supports up to 6S(30x30) 4S(20x20)
- 5V 3A BEC
- JST-SH 6 pin 4in1 ESC plug
- JST-SH 5 pin plug for Cam and Vtx (Normal Version)
- GH-1.25 6 pin HD plug for Dji FPV System (HD Version)
### Feature
- Easy connect for peripherals(CAM/Vtx/Receiver)
- Built in inverter for SBUS
- Rubber damping ring
- Vtx power switch support
## Designers & Maintainers
TransTEC Hobby (https://www.transtechobby.com)
TransTEC Facebook (https://www.facebook.com/TransTechobby/)
TransTEC Instagram (https://www.instagram.com/transtechobby/)
![TRANSTECF411 top](images/TRANSTECF411-TopSide.jpg)
![TRANSTECF411 bottom](images/TRANSTECF411-BottomSide.jpg)

Binary file not shown.

After

Width:  |  Height:  |  Size: 276 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 275 KiB

View File

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

View File

@ -0,0 +1,37 @@
/*
* This file is part of Cleanflight and Betaflight.
*
* Cleanflight and Betaflight are free software. You can redistribute
* this software and/or modify this software under the terms of the
* GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option)
* any later version.
*
* Cleanflight and Betaflight are distributed in the hope that they
* will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this software.
*
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdint.h>
#include "platform.h"
#include "drivers/io.h"
#include "drivers/dma.h"
#include "drivers/timer.h"
#include "drivers/timer_def.h"
const timerHardware_t timerHardware[USABLE_TIMER_CHANNEL_COUNT] = {
DEF_TIM(TIM3, CH3, PB0, TIM_USE_MOTOR, 0, 0), // S1_OUT
DEF_TIM(TIM3, CH4, PB1, TIM_USE_MOTOR, 0, 0), // S2_OUT
DEF_TIM(TIM2, CH3, PB10, TIM_USE_MOTOR, 0, 0), // S3_OUT
DEF_TIM(TIM4, CH4, PB9, TIM_USE_MOTOR, 0, 0), // S4_OUT
DEF_TIM(TIM1, CH1, PA8, TIM_USE_LED, 0, 0), // LED_Strip
};

View File

@ -0,0 +1,115 @@
/*
* This file is part of Cleanflight and Betaflight.
*
* Cleanflight and Betaflight are free software. You can redistribute
* this software and/or modify this software under the terms of the
* GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option)
* any later version.
*
* Cleanflight and Betaflight are distributed in the hope that they
* will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this software.
*
* If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#define USE_TARGET_CONFIG
#define TARGET_BOARD_IDENTIFIER "TT41"
#define USBD_PRODUCT_STRING "TransTECF411"
#define TARGET_MANUFACTURER_IDENTIFIER "TTRH"
#define LED0_PIN PA14
#define USE_BEEPER
#define BEEPER_PIN PB5
#define BEEPER_INVERTED
#define ENABLE_DSHOT_DMAR true
#define USE_PINIO
#define PINIO1_PIN PB6 //VTX Power Switch
#define USE_PINIOBOX
// *************** Gyro & ACC **********************
#define USE_SPI
#define USE_SPI_DEVICE_1
#define SPI1_SCK_PIN PA5
#define SPI1_MISO_PIN PA6
#define SPI1_MOSI_PIN PA7
#define GYRO_1_CS_PIN PA4
#define GYRO_1_SPI_INSTANCE SPI1
#define USE_EXTI
#define USE_GYRO_EXTI
#define GYRO_1_EXTI_PIN PA1
#define USE_MPU_DATA_READY_SIGNAL
#define USE_GYRO
#define USE_GYRO_SPI_MPU6000
#define GYRO_1_ALIGN CW90_DEG
#define USE_ACC
#define USE_ACC_SPI_MPU6000
// *************** UART *****************************
#define USE_VCP
#define USB_DETECT_PIN PC15
#define USE_USB_DETECT
#define USE_UART1
#define UART1_RX_PIN PA10
#define UART1_TX_PIN PA9
#define USE_UART2
#define UART2_RX_PIN PA3
#define UART2_TX_PIN PA2
#define SERIAL_PORT_COUNT 3
#define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL
#define SERIALRX_PROVIDER SERIALRX_SBUS
#define SERIALRX_UART SERIAL_PORT_USART1
#define INVERTER_PIN_UART1 PC13
// *************** OSD *****************************
#define USE_SPI_DEVICE_2
#define SPI2_SCK_PIN PB13
#define SPI2_MISO_PIN PB14
#define SPI2_MOSI_PIN PB15
#define USE_MAX7456
#define MAX7456_SPI_INSTANCE SPI2
#define MAX7456_SPI_CS_PIN PB12
// *************** ADC *****************************
#define USE_ADC
#define ADC_INSTANCE ADC1
#define ADC1_DMA_OPT 0
#define VBAT_ADC_PIN PA0
#define CURRENT_METER_ADC_PIN PB4
#define USE_ESCSERIAL
#define DEFAULT_FEATURES (FEATURE_OSD | FEATURE_AIRMODE)
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
#define TARGET_IO_PORTA 0xffff
#define TARGET_IO_PORTB 0xffff
#define TARGET_IO_PORTC 0xffff
#define TARGET_IO_PORTD (BIT(2))
#define USABLE_TIMER_CHANNEL_COUNT 5
#define USED_TIMERS ( TIM_N(1)|TIM_N(2)|TIM_N(3)|TIM_N(4) )

View File

@ -0,0 +1,7 @@
F411_TARGETS += $(TARGET)
FEATURES += VCP ONBOARDFLASH
TARGET_SRC = \
drivers/accgyro/accgyro_spi_mpu6000.c \
drivers/max7456.c \
drivers/pinio.c