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 #if defined(CRAZYBEEF3FS)
24 #define TARGET_BOARD_IDENTIFIER "CBFS"
25 #define USBD_PRODUCT_STRING "CrazyBee F3 FS"
26 #elif defined(CRAZYBEEF3DX)
27 #define TARGET_BOARD_IDENTIFIER "CBDX"
28 #define USBD_PRODUCT_STRING "CrazyBee F3 DX"
30 #define TARGET_BOARD_IDENTIFIER "CBFR"
31 #define USBD_PRODUCT_STRING "CrazyBee F3 FR"
34 #undef USE_SERIALRX_CRSF
35 #undef USE_SERIALRX_SUMD
36 #undef USE_SERIALRX_SUMH
37 #undef USE_SERIALRX_XBUS
38 #undef USE_TELEMETRY_CRSF
39 #undef USE_TELEMETRY_MAVLINK
43 #if defined(CRAZYBEEF3FS)
44 #undef USE_SERIALRX_SBUS
45 #undef USE_SERIALRX_FPORT
46 #undef USE_SERIALRX_SPEKTRUM
47 #undef USE_TELEMETRY_FRSKY_HUB
48 #undef USE_TELEMETRY_SMARTPORT
49 #undef USE_TELEMETRY_SRXL
50 #elif defined(CRAZYBEEF3DX)
51 #undef USE_SERIALRX_SBUS
52 #undef USE_SERIALRX_FPORT
53 #undef USE_SERIALRX_IBUS
54 #undef USE_TELEMETRY_FRSKY_HUB
55 #undef USE_TELEMETRY_SMARTPORT
57 #undef USE_SERIALRX_SPEKTRUM
58 #undef USE_SERIALRX_IBUS
59 #undef USE_TELEMETRY_SRXL
62 #define ENABLE_DSHOT_DMAR DSHOT_DMAR_ON
66 #define BEEPER_PIN PC15
67 #define BEEPER_INVERTED
71 #define GYRO_1_EXTI_PIN PC13
72 #define USE_MPU_DATA_READY_SIGNAL
73 #define GYRO_1_SPI_INSTANCE SPI1
74 #define GYRO_1_CS_PIN PA4
76 #define USE_GYRO_SPI_MPU6000
77 #define GYRO_1_ALIGN CW90_DEG
79 #define USE_ACC_SPI_MPU6000
82 #if defined(CRAZYBEEF3DX)
85 #define SERIAL_PORT_COUNT 3
86 #define UART2_TX_PIN PA14
87 #define UART2_RX_PIN PA15
88 #define UART3_TX_PIN PB10
89 #define UART3_RX_PIN PB11
92 #define SERIAL_PORT_COUNT 2
93 #define UART3_TX_PIN PB10
94 #define UART3_RX_PIN PB11
98 #define USE_SPI_DEVICE_1
99 #define SPI1_NSS_PIN PA4
100 #define SPI1_SCK_PIN PA5
101 #define SPI1_MISO_PIN PA6
102 #define SPI1_MOSI_PIN PA7
104 #define USE_SPI_DEVICE_2
105 #define SPI2_NSS_PIN PB12
106 #define SPI2_SCK_PIN PB13
107 #define SPI2_MISO_PIN PB14
108 #define SPI2_MOSI_PIN PB15
110 #if defined(CRAZYBEEF3FS)
112 #define USE_RX_FLYSKY
113 #define RX_CHANNELS_AETR
114 #define DEFAULT_RX_FEATURE FEATURE_RX_SPI
115 #define RX_SPI_DEFAULT_PROTOCOL RX_SPI_A7105_FLYSKY_2A
116 #define FLYSKY_2A_CHANNEL_COUNT 14
117 #define RX_SPI_INSTANCE SPI2
118 #define RX_NSS_PIN SPI2_NSS_PIN
119 #define RX_SPI_EXTI_PIN PA8
120 #define RX_SPI_BIND_PIN PA9
121 #define RX_SPI_LED_PIN PA10
122 #define DEFAULT_FEATURES (FEATURE_TELEMETRY | FEATURE_OSD | FEATURE_MOTOR_STOP)
123 #elif defined(CRAZYBEEF3DX)
124 #define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL
125 #define SERIALRX_PROVIDER SERIALRX_SPEKTRUM2048
126 #define SERIALRX_UART SERIAL_PORT_USART3
127 #define RX_CHANNELS_TAER
128 #define DEFAULT_FEATURES (FEATURE_OSD | FEATURE_MOTOR_STOP)
131 #define USE_RX_FRSKY_SPI_D
132 #define USE_RX_FRSKY_SPI_X
133 #define USE_RX_FRSKY_SPI_TELEMETRY
134 #define USE_RX_SFHSS_SPI
135 #define DEFAULT_RX_FEATURE FEATURE_RX_SPI
136 #define RX_SPI_DEFAULT_PROTOCOL RX_SPI_FRSKY_X
137 #define RX_SPI_INSTANCE SPI2
138 #define RX_NSS_PIN SPI2_NSS_PIN
139 #define RX_SPI_EXTI_PIN PA8
140 #define RX_SPI_LED_PIN PA10
141 #define RX_SPI_BIND_PIN PA9
142 #define DEFAULT_FEATURES (FEATURE_TELEMETRY | FEATURE_OSD | FEATURE_MOTOR_STOP)
146 #define MAX7456_SPI_INSTANCE SPI1
147 #define MAX7456_SPI_CS_PIN PB1
150 #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
151 #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
152 #define VBAT_ADC_PIN PA0
153 #define CURRENT_METER_ADC_PIN PA1
154 #define ADC_INSTANCE ADC1
155 #define CURRENT_METER_SCALE_DEFAULT 2350
157 #define TARGET_IO_PORTA 0xffff
158 #define TARGET_IO_PORTB 0xffff
159 #define TARGET_IO_PORTC (BIT(13)|BIT(14)|BIT(15))
160 #define TARGET_IO_PORTF (BIT(0)|BIT(1)|BIT(4))
161 #define USABLE_TIMER_CHANNEL_COUNT 6
162 #define USED_TIMERS (TIM_N(2) |TIM_N(3) |TIM_N(4) | TIM_N(8))