Update DPS310 driver to support SPL07-003
[inav.git] / src / main / target / KROOZX / target.h
blobea5ee6a8e0f77b670ee5093ede3ace9c0e5abbda
1 /*
2 * This file is part of Cleanflight.
4 * Cleanflight is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * Cleanflight is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with Cleanflight. If not, see <http://www.gnu.org/licenses/>.
18 #pragma once
20 #define TARGET_BOARD_IDENTIFIER "KROOZX"
21 #define USBD_PRODUCT_STRING "KroozX"
23 #define USE_HARDWARE_PREBOOT_SETUP
25 #define LED0 PA14 // Red LED
26 #define LED1 PA13 // Green LED
28 #define BEEPER PC1
29 #define BEEPER_INVERTED
31 #define MPU6000_CS_PIN PB2
32 #define MPU6000_SPI_BUS BUS_SPI1
34 #define USE_IMU_MPU6000
35 #define IMU_MPU6000_ALIGN CW90_DEG_FLIP
37 #define USE_MAG
38 #define MAG_I2C_BUS BUS_I2C1
39 #define USE_MAG_ALL
41 #define TEMPERATURE_I2C_BUS BUS_I2C1
43 #define USE_BARO
44 #define BARO_I2C_BUS BUS_I2C3
45 #define USE_BARO_MS5611
47 #define USE_SDCARD
48 #define USE_SDCARD_SPI
49 #define SDCARD_SPI_BUS BUS_SPI3
50 #define SDCARD_CS_PIN PA15
51 #define SDCARD_DETECT_INVERTED
52 #define SDCARD_DETECT_PIN PC13
54 #ifdef USE_MSP_DISPLAYPORT
55 #undef USE_MSP_DISPLAYPORT
56 #endif
58 #define USE_MAX7456
59 #define MAX7456_SPI_BUS BUS_SPI1
60 #define MAX7456_CS_PIN PC4
62 #define OSD_CH_SWITCH PC5
64 #define BOARD_HAS_VOLTAGE_DIVIDER
65 #define USE_ADC
66 #define ADC_CHANNEL_1_PIN PC3
67 #define ADC_CHANNEL_2_PIN PC2
68 #define ADC_CHANNEL_3_PIN PC0
69 #define VBAT_ADC_CHANNEL ADC_CHN_1
70 #define CURRENT_METER_ADC_CHANNEL ADC_CHN_2
71 #define RSSI_ADC_CHANNEL ADC_CHN_3
73 #define USE_VCP
75 #define USE_UART_INVERTER
77 #define USE_UART1
78 #define UART1_RX_PIN PA10
79 #define UART1_TX_PIN PA9
80 #define INVERTER_PIN_UART1_RX PB13
82 #define USE_UART3
83 #define UART3_RX_PIN PB11
84 #define UART3_TX_PIN PB10
86 #define USE_UART4
87 #define UART4_RX_PIN PC11
88 #define UART4_TX_PIN PC10
90 #define USE_UART5
91 #define UART5_RX_PIN PD2
92 #define UART5_TX_PIN PC12
94 #define USE_UART6
95 #define UART6_RX_PIN PC7
96 #define UART6_TX_PIN PC6
97 #define INVERTER_PIN_UART6_RX PB12
99 #define SERIAL_PORT_COUNT 6
101 #define USE_I2C
103 #define USE_I2C_DEVICE_1
104 #define I2C1_SCL PB6
105 #define I2C1_SDA PB7
107 #define USE_I2C_DEVICE_3
108 #define I2C3_SCL PA8
109 #define I2C3_SDA PC9
111 #define USE_SPI
112 #define USE_SPI_DEVICE_1
113 #define SPI1_NSS_PIN PC4
114 #define SPI1_SCK_PIN PA5
115 #define SPI1_MISO_PIN PA6
116 #define SPI1_MOSI_PIN PA7
118 #define USE_SPI_DEVICE_3
119 #define SPI3_SCK_PIN PB3
120 #define SPI3_MISO_PIN PB4
121 #define SPI3_MOSI_PIN PB5
123 #define ENABLE_BLACKBOX_LOGGING_ON_SDCARD_BY_DEFAULT
125 #define SENSORS_SET (SENSOR_ACC|SENSOR_MAG|SENSOR_BARO)
127 #define DEFAULT_RX_TYPE RX_TYPE_SERIAL
128 #define RX_CHANNELS_TAER
129 #define DEFAULT_FEATURES (FEATURE_TX_PROF_SEL | FEATURE_VBAT | FEATURE_CURRENT_METER | FEATURE_OSD)
131 #define USE_LED_STRIP
132 #define WS2811_PIN PC6
134 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
136 #define TARGET_IO_PORTA 0xffff
137 #define TARGET_IO_PORTB 0xffff
138 #define TARGET_IO_PORTC 0xffff
139 #define TARGET_IO_PORTD (BIT(2))
141 #define MAX_PWM_OUTPUT_PORTS 10