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 TARGET_BOARD_IDENTIFIER "SING"
29 #define BEEPER_PIN PC15
33 #define GYRO_1_EXTI_PIN PC13
34 #define USE_MPU_DATA_READY_SIGNAL
37 #define USE_GYRO_MPU6050
38 #define GYRO_1_ALIGN CW0_DEG_FLIP
41 #define USE_ACC_MPU6050
44 #define USE_FLASH_M25P16
47 #define USE_UART1 // JST-SH Serial - TX (PA9) RX (PA10)
48 #define USE_UART2 // Input - TX (NC) RX (PA15)
49 #define USE_UART3 // Solder Pads - TX (PB10) RX (PB11)
50 #define USE_SOFTSERIAL1 // Telemetry
51 #define USE_SOFTSERIAL2
53 #define SERIAL_PORT_COUNT 6
56 #define ESCSERIAL_TIMER_TX_PIN PA15 // (HARDARE=0,PPM)
58 #define UART1_TX_PIN PA9
59 #define UART1_RX_PIN PA10
61 #define UART2_TX_PIN PA14 //Not connected
62 #define UART2_RX_PIN PA15
64 #define UART3_TX_PIN PB10
65 #define UART3_RX_PIN PB11
67 #define SOFTSERIAL1_RX_PIN PA2 //Not connected
68 #define SOFTSERIAL1_TX_PIN PA3
71 #define USE_I2C_DEVICE_1
72 #define I2C_DEVICE (I2CDEV_1)
75 #define USE_SPI_DEVICE_1 // PA4, 5, 6, 7
76 #define USE_SPI_DEVICE_2 // PB12,13,14,15 on AF5
78 #define USE_VTX_RTC6705
80 #define RTC6705_CS_PIN PA4
81 #define RTC6705_SPI_INSTANCE SPI1
83 #define FLASH_CS_PIN PB12
84 #define FLASH_SPI_INSTANCE SPI2
88 #define ADC_INSTANCE ADC2
89 #define VBAT_ADC_PIN PB2
90 #define VBAT_SCALE_DEFAULT 77
92 #define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
94 #define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL
95 #define SERIALRX_UART SERIAL_PORT_USART2
97 // IO - stm32f303cc in 48pin package
98 #define TARGET_IO_PORTA 0xffff
99 #define TARGET_IO_PORTB 0xffff
100 #define TARGET_IO_PORTC (BIT(13)|BIT(14)|BIT(15))
101 //#define TARGET_IO_PORTF (BIT(0)|BIT(1))
102 // !!TODO - check the following line is correct
103 #define TARGET_IO_PORTF (BIT(0)|BIT(1)|BIT(3)|BIT(4))
105 #define USABLE_TIMER_CHANNEL_COUNT 10
106 #define USED_TIMERS (TIM_N(1) | TIM_N(2) | TIM_N(3) | TIM_N(4) | TIM_N(15) | TIM_N(16) |TIM_N(17))