vtx: fix VTX_SETTINGS_POWER_COUNT and add dummy entries to saPowerNames
[inav.git] / src / main / target / RADIX / target.h
blob95b3957698697d5710c1d610f168e184d4f75ae6
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 "RADIX"
22 #define USBD_PRODUCT_STRING "BrainFPV RADIX"
24 #define LED0 PA4
25 #define LED0_INVERTED
27 #define BEEPER NONE
29 #define BMI160_SPI_BUS BUS_SPI3
30 #define BMI160_CS_PIN PB4
32 #define USE_IMU_BMI160
33 #define IMU_BMI160_ALIGN CW0_DEG
35 // #define USE_MAG
36 // #define MAG_I2C_BUS BUS_I2C1
37 // #define USE_MAG_HMC5883
38 // #define USE_MAG_QMC5883
39 // #define USE_MAG_IST8310
40 // #define USE_MAG_MAG3110
41 // #define USE_MAG_LIS3MDL
43 #define USE_BARO
44 #define USE_BARO_BMP280
45 #define BMP280_SPI_BUS BUS_SPI3
46 #define BMP280_CS_PIN PB8
48 //#define USE_PITOT_MS4525
49 //#define PITOT_I2C_BUS BUS_I2C2
51 #define USE_VCP
52 #define VBUS_SENSING_PIN PA9
53 #define VBUS_SENSING_ENABLED
55 #define USE_UART1
56 #define UART1_RX_PIN PB7
57 #define UART1_TX_PIN PB6
59 #define USE_UART3
60 #define UART3_RX_PIN PC5
61 #define UART3_TX_PIN PB10
63 #define USE_UART4
64 #define UART4_RX_PIN PA1
65 #define UART4_TX_PIN PA0
67 #define USE_UART6
68 #define UART6_RX_PIN PC7
69 #define UART6_TX_PIN PC6
71 #define SERIAL_PORT_COUNT 5 //VCP, USART1, USART3, USART4, USART6
73 #define USE_SPI
75 #define USE_SPI_DEVICE_1
76 #define SPI1_SCK_PIN PA5
77 #define SPI1_MISO_PIN PA6
78 #define SPI1_MOSI_PIN PA7
80 #define USE_SPI_DEVICE_3
81 #define SPI3_SCK_PIN PB3
82 #define SPI3_MISO_PIN PC11
83 #define SPI3_MOSI_PIN PC12
85 // #define USE_I2C
86 // #define USE_I2C_DEVICE_1
87 // #define I2C1_SCL PB8
88 // #define I2C1_SDA PB9
90 #define USE_ADC
91 #define ADC_CHANNEL_1_PIN PC0
92 #define ADC_CHANNEL_2_PIN PC1
93 #define ADC_CHANNEL_3_PIN PC3
94 #define VBAT_ADC_CHANNEL ADC_CHN_1
95 #define CURRENT_METER_ADC_CHANNEL ADC_CHN_2
96 #define RSSI_ADC_CHANNEL ADC_CHN_3
98 // #define ENABLE_BLACKBOX_LOGGING_ON_SDCARD_BY_DEFAULT
99 // #define USE_SDCARD
100 // #define USE_SDCARD_SPI
102 // #define SDCARD_DETECT_INVERTED
103 // #define SDCARD_DETECT_PIN PB13
104 // #define SDCARD_SPI_BUS BUS_SPI2
105 // #define SDCARD_CS_PIN PB15
107 #define SENSORS_SET (SENSOR_ACC|SENSOR_BARO)
109 #define DEFAULT_RX_TYPE RX_TYPE_SERIAL
110 #define DEFAULT_FEATURES (FEATURE_TX_PROF_SEL | FEATURE_BLACKBOX)
112 #define USE_SPEKTRUM_BIND
113 #define BIND_PIN PB14
115 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
117 #define MAX_PWM_OUTPUT_PORTS 6
119 #define TARGET_IO_PORTA 0xffff
120 #define TARGET_IO_PORTB 0xffff
121 #define TARGET_IO_PORTC 0xffff
122 #define TARGET_IO_PORTD (BIT(2))