2 * This file is part of Cleanflight and Betaflight.
4 * Cleanflight and Betaflight are free software. You can redistribute
5 * this software and/or modify this software under the terms of the
6 * GNU General Public License as published by the Free Software
7 * Foundation, either version 3 of the License, or (at your option)
10 * Cleanflight and Betaflight are distributed in the hope that they
11 * will be useful, but WITHOUT ANY WARRANTY; without even the implied
12 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 * See the GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this software.
18 * If not, see <http://www.gnu.org/licenses/>.
23 #define USE_TARGET_CONFIG
25 #define TARGET_BOARD_IDENTIFIER "TT41"
26 #define USBD_PRODUCT_STRING "TransTECF411"
27 #define TARGET_MANUFACTURER_IDENTIFIER "TTRH"
32 #define BEEPER_PIN PB5
33 #define BEEPER_INVERTED
35 #define ENABLE_DSHOT_DMAR DSHOT_DMAR_ON
38 #define PINIO1_PIN PB6 //VTX Power Switch
41 // *************** Gyro & ACC **********************
43 #define USE_SPI_DEVICE_1
45 #define SPI1_SCK_PIN PA5
46 #define SPI1_MISO_PIN PA6
47 #define SPI1_MOSI_PIN PA7
49 #define GYRO_1_CS_PIN PA4
50 #define GYRO_1_SPI_INSTANCE SPI1
54 #define GYRO_1_EXTI_PIN PA1
55 #define USE_MPU_DATA_READY_SIGNAL
58 #define USE_GYRO_SPI_MPU6000
59 #define GYRO_1_ALIGN CW90_DEG
62 #define USE_ACC_SPI_MPU6000
64 // *************** UART *****************************
66 #define USB_DETECT_PIN PC15
67 #define USE_USB_DETECT
70 #define UART1_RX_PIN PA10
71 #define UART1_TX_PIN PA9
74 #define UART2_RX_PIN PA3
75 #define UART2_TX_PIN PA2
77 #define SERIAL_PORT_COUNT 3
79 #define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL
80 #define SERIALRX_PROVIDER SERIALRX_SBUS
81 #define SERIALRX_UART SERIAL_PORT_USART1
83 #define INVERTER_PIN_UART1 PC13
85 // *************** OSD *****************************
86 #define USE_SPI_DEVICE_2
87 #define SPI2_SCK_PIN PB13
88 #define SPI2_MISO_PIN PB14
89 #define SPI2_MOSI_PIN PB15
92 #define MAX7456_SPI_INSTANCE SPI2
93 #define MAX7456_SPI_CS_PIN PB12
95 // *************** ADC *****************************
97 #define ADC_INSTANCE ADC1
98 #define ADC1_DMA_OPT 0
100 #define VBAT_ADC_PIN PA0
101 #define CURRENT_METER_ADC_PIN PB4
103 #define USE_ESCSERIAL
105 #define DEFAULT_FEATURES (FEATURE_OSD | FEATURE_AIRMODE)
106 #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
107 #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
109 #define TARGET_IO_PORTA 0xffff
110 #define TARGET_IO_PORTB 0xffff
111 #define TARGET_IO_PORTC 0xffff
112 #define TARGET_IO_PORTD (BIT(2))
114 #define USABLE_TIMER_CHANNEL_COUNT 5
115 #define USED_TIMERS ( TIM_N(1)|TIM_N(2)|TIM_N(3)|TIM_N(4) )