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 "KISSV2"
27 #define USBD_PRODUCT_STRING "KISSFCV2F7"
29 #undef USE_CUSTOM_DEFAULTS_ADDRESS
31 #define LED0_PIN PA8 // blue
32 #define LED1_PIN PC8 // blingbling
36 #define BEEPER_PIN PC9
37 #define BEEPER_INVERTED
39 #define GYRO_1_CS_PIN PB12
40 #define GYRO_1_SPI_INSTANCE SPI2
43 #define USE_GYRO_SPI_MPU6000
44 #define GYRO_1_ALIGN CW90_DEG
47 #define USE_ACC_SPI_MPU6000
52 #define USE_SPI_DEVICE_1
53 #define SPI1_NSS_PIN PA4
54 #define SPI1_SCK_PIN PA5
55 #define SPI1_MISO_PIN PA6
56 #define SPI1_MOSI_PIN PA7
58 #define USE_SPI_DEVICE_2
59 #define SPI2_NSS_PIN PB12
60 #define SPI2_SCK_PIN PB13
61 #define SPI2_MISO_PIN PB14
62 #define SPI2_MOSI_PIN PB15
66 #define UART1_RX_PIN PA10
67 #define UART1_TX_PIN PA9
70 #define UART2_RX_PIN PA3
71 #define UART2_TX_PIN PA2
74 #define UART3_RX_PIN PB11
75 #define UART3_TX_PIN PB10
78 #define UART4_RX_PIN PC11
79 #define UART4_TX_PIN PC10
82 #define UART5_RX_PIN PD2
83 #define UART5_TX_PIN PC12
86 //#define UART6_RX_PIN PC7
87 //#define UART6_TX_PIN PC6
89 #define USE_SOFTSERIAL1
90 #define SOFTSERIAL1_TX_PIN PB4
91 #define SOFTSERIAL1_RX_PIN NONE //PB5
93 #define SERIAL_PORT_COUNT 6
95 #define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL
96 #define SERIALRX_PROVIDER SERIALRX_SBUS
97 #define SERIALRX_UART SERIAL_PORT_USART2
99 #define AVOID_UART2_FOR_PWM_PPM
101 #define SPEKTRUM_BIND_PIN UART2_RX_PIN
104 #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
105 #define VBAT_SCALE_DEFAULT 160
106 #define VBAT_ADC_PIN PB1
108 #define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL
109 #define SERIALRX_PROVIDER SERIALRX_SBUS
111 #define TARGET_IO_PORTA 0xffff
112 #define TARGET_IO_PORTB 0xffff
113 #define TARGET_IO_PORTC 0xffff
114 #define TARGET_IO_PORTD (BIT(2))
116 #define USABLE_TIMER_CHANNEL_COUNT 8
118 #define USED_TIMERS ( TIM_N(2) | TIM_N(4) | TIM_N(5) | TIM_N(8) | TIM_N(9) )