Merge pull request #11195 from mathiasvr/pr-elrs-clean
[betaflight.git] / src / main / target / common_defaults_post.h
blob32389acf8e746e504e7352ef01cf7325289ceb0c
1 /*
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)
8 * any later version.
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/>.
21 // pg/max7456
23 #ifndef DEBUG_MODE
24 #define DEBUG_MODE DEBUG_NONE
25 #endif
27 #ifdef USE_MAX7456
28 #ifndef MAX7456_CLOCK_CONFIG_DEFAULT
29 #define MAX7456_CLOCK_CONFIG_DEFAULT MAX7456_CLOCK_CONFIG_OC
30 #endif
32 #ifndef MAX7456_SPI_CS_PIN
33 #define MAX7456_SPI_CS_PIN NONE
34 #endif
36 #ifndef MAX7456_SPI_INSTANCE
37 #define MAX7456_SPI_INSTANCE NULL
38 #endif
39 #endif
41 // pg/flash
43 #ifdef USE_FLASH_M25P16
44 #ifndef FLASH_CS_PIN
45 #define FLASH_CS_PIN NONE
46 #endif
48 #ifndef FLASH_SPI_INSTANCE
49 #define FLASH_SPI_INSTANCE NULL
50 #endif
51 #endif
53 // pg/flash
55 #ifdef USE_FLASH_M25P16
56 #ifndef FLASH_CS_PIN
57 #define FLASH_CS_PIN NONE
58 #endif
60 #ifndef FLASH_SPI_INSTANCE
61 #define FLASH_SPI_INSTANCE NULL
62 #endif
63 #endif
65 // pg/bus_i2c
67 #ifdef I2C_FULL_RECONFIGURABILITY
68 #ifdef USE_I2C_DEVICE_1
69 #define I2C1_SCL NONE
70 #define I2C1_SDA NONE
71 #endif
73 #ifdef USE_I2C_DEVICE_2
74 #define I2C2_SCL NONE
75 #define I2C2_SDA NONE
76 #endif
78 #ifdef USE_I2C_DEVICE_3
79 #define I2C3_SCL NONE
80 #define I2C3_SDA NONE
81 #endif
83 #ifdef USE_I2C_DEVICE_4
84 #define I2C4_SCL NONE
85 #define I2C4_SDA NONE
86 #endif
88 #else // I2C_FULL_RECONFIGURABILITY
90 // Backward compatibility for exisiting targets
92 #ifdef STM32F4
93 #ifndef I2C1_SCL
94 #define I2C1_SCL PB6
95 #endif
96 #ifndef I2C1_SDA
97 #define I2C1_SDA PB7
98 #endif
99 #ifndef I2C2_SCL
100 #define I2C2_SCL PB10
101 #endif
102 #ifndef I2C2_SDA
103 #define I2C2_SDA PB11
104 #endif
105 #ifndef I2C3_SCL
106 #define I2C3_SCL PA8
107 #endif
108 #ifndef I2C3_SDA
109 #define I2C3_SDA PC9
110 #endif
111 #endif // STM32F4
113 #ifdef STM32F7
114 #ifndef I2C1_SCL
115 #define I2C1_SCL PB6
116 #endif
117 #ifndef I2C1_SDA
118 #define I2C1_SDA PB7
119 #endif
120 #ifndef I2C2_SCL
121 #define I2C2_SCL PB10
122 #endif
123 #ifndef I2C2_SDA
124 #define I2C2_SDA PB11
125 #endif
126 #ifndef I2C3_SCL
127 #define I2C3_SCL PA8
128 #endif
129 #ifndef I2C3_SDA
130 #define I2C3_SDA PB4
131 #endif
132 #ifndef I2C4_SCL
133 #define I2C4_SCL PD12
134 #endif
135 #ifndef I2C4_SDA
136 #define I2C4_SDA PD13
137 #endif
138 #endif // STM32F7
140 #endif // I2C_FULL_RECONFIGURABILITY
142 #ifndef I2C1_CLOCKSPEED
143 #define I2C1_CLOCKSPEED 800
144 #endif
145 #ifndef I2C2_CLOCKSPEED
146 #define I2C2_CLOCKSPEED 800
147 #endif
148 #ifndef I2C3_CLOCKSPEED
149 #define I2C3_CLOCKSPEED 800
150 #endif
151 #ifndef I2C4_CLOCKSPEED
152 #define I2C4_CLOCKSPEED 800
153 #endif
155 // Default values for internal pullup
157 #if defined(USE_I2C_PULLUP)
158 #define I2C1_PULLUP true
159 #define I2C2_PULLUP true
160 #define I2C3_PULLUP true
161 #define I2C4_PULLUP true
162 #else
163 #define I2C1_PULLUP false
164 #define I2C2_PULLUP false
165 #define I2C3_PULLUP false
166 #define I2C4_PULLUP false
167 #endif
169 // pg/bus_spi
171 #ifdef SPI_FULL_RECONFIGURABILITY
173 #ifdef USE_SPI_DEVICE_1
174 #define SPI1_SCK_PIN NONE
175 #define SPI1_MISO_PIN NONE
176 #define SPI1_MOSI_PIN NONE
177 #endif
179 #ifdef USE_SPI_DEVICE_2
180 #define SPI2_SCK_PIN NONE
181 #define SPI2_MISO_PIN NONE
182 #define SPI2_MOSI_PIN NONE
183 #endif
185 #ifdef USE_SPI_DEVICE_3
186 #define SPI3_SCK_PIN NONE
187 #define SPI3_MISO_PIN NONE
188 #define SPI3_MOSI_PIN NONE
189 #endif
191 #ifdef USE_SPI_DEVICE_4
192 #define SPI4_SCK_PIN NONE
193 #define SPI4_MISO_PIN NONE
194 #define SPI4_MOSI_PIN NONE
195 #endif
197 #ifdef USE_SPI_DEVICE_5
198 #define SPI5_SCK_PIN NONE
199 #define SPI5_MISO_PIN NONE
200 #define SPI5_MOSI_PIN NONE
201 #endif
203 #ifdef USE_SPI_DEVICE_6
204 #define SPI6_SCK_PIN NONE
205 #define SPI6_MISO_PIN NONE
206 #define SPI6_MOSI_PIN NONE
207 #endif
208 #else
210 // Pin defaults for backward compatibility
212 #ifndef SPI1_SCK_PIN
213 #define SPI1_SCK_PIN PA5
214 #define SPI1_MISO_PIN PA6
215 #define SPI1_MOSI_PIN PA7
216 #endif
218 #ifndef SPI2_SCK_PIN
219 #define SPI2_SCK_PIN PB13
220 #define SPI2_MISO_PIN PB14
221 #define SPI2_MOSI_PIN PB15
222 #endif
224 #ifndef SPI3_SCK_PIN
225 #define SPI3_SCK_PIN PB3
226 #define SPI3_MISO_PIN PB4
227 #define SPI3_MOSI_PIN PB5
228 #endif
230 #ifndef SPI4_SCK_PIN
231 #define SPI4_SCK_PIN NONE
232 #define SPI4_MISO_PIN NONE
233 #define SPI4_MOSI_PIN NONE
234 #endif
236 #ifndef SPI5_SCK_PIN
237 #define SPI5_SCK_PIN NONE
238 #define SPI5_MISO_PIN NONE
239 #define SPI5_MOSI_PIN NONE
240 #endif
242 #ifndef SPI6_SCK_PIN
243 #define SPI6_SCK_PIN NONE
244 #define SPI6_MISO_PIN NONE
245 #define SPI6_MOSI_PIN NONE
246 #endif
248 #endif
250 // Extracted from rx/rx.c and rx/rx.h
252 #define RX_MAPPABLE_CHANNEL_COUNT 8
254 #ifndef RX_SPI_DEFAULT_PROTOCOL
255 #define RX_SPI_DEFAULT_PROTOCOL 0
256 #endif
257 #ifndef SERIALRX_PROVIDER
258 #define SERIALRX_PROVIDER 0
259 #endif
261 #define RX_MIN_USEC 885
262 #define RX_MAX_USEC 2115
263 #define RX_MID_USEC 1500
265 #ifndef SPEKTRUM_BIND_PIN
266 #define SPEKTRUM_BIND_PIN NONE
267 #endif
269 #ifndef BINDPLUG_PIN
270 #define BINDPLUG_PIN NONE
271 #endif
273 #ifdef USE_RX_SPI
274 #if !defined(RX_SPI_INSTANCE)
275 #define RX_SPI_INSTANCE NULL
276 #endif
278 #if !defined(RX_NSS_PIN)
279 #define RX_NSS_PIN NONE
280 #endif
282 #ifndef RX_SPI_LED_PIN
283 #define RX_SPI_LED_PIN NONE
284 #endif
286 #if !defined(RX_SPI_EXTI_PIN)
287 #define RX_SPI_EXTI_PIN NONE
288 #endif
290 #if !defined(RX_SPI_BIND_PIN)
291 #define RX_SPI_BIND_PIN NONE
292 #endif
294 #if defined(USE_RX_CC2500)
295 #if !defined(RX_CC2500_SPI_TX_EN_PIN)
296 #define RX_CC2500_SPI_TX_EN_PIN NONE
297 #endif
299 #if !defined(RX_CC2500_SPI_LNA_EN_PIN)
300 #define RX_CC2500_SPI_LNA_EN_PIN NONE
301 #endif
303 #if !defined(RX_CC2500_SPI_ANT_SEL_PIN)
304 #define RX_CC2500_SPI_ANT_SEL_PIN NONE
305 #endif
306 #endif
308 #if defined(USE_RX_EXPRESSLRS)
309 #if !defined(RX_EXPRESSLRS_SPI_RESET_PIN)
310 #define RX_EXPRESSLRS_SPI_RESET_PIN NONE
311 #endif
313 #if !defined(RX_EXPRESSLRS_SPI_BUSY_PIN)
314 #define RX_EXPRESSLRS_SPI_BUSY_PIN NONE
315 #endif
317 #if !defined(RX_EXPRESSLRS_TIMER_INSTANCE)
318 #define RX_EXPRESSLRS_TIMER_INSTANCE NULL
319 #endif
321 #endif
323 #endif
325 // gyro hardware
327 #if !defined(GYRO_1_SPI_INSTANCE) && !defined(SIMULATOR_BUILD)
328 #define GYRO_1_SPI_INSTANCE NULL
329 #endif
331 #if !defined(GYRO_1_CS_PIN)
332 #define GYRO_1_CS_PIN NONE
333 #endif
335 #if !defined(GYRO_1_EXTI_PIN)
336 #define GYRO_1_EXTI_PIN NONE
337 #endif
339 // F4 and F7 single gyro boards
340 #if defined(USE_MULTI_GYRO) && !defined(GYRO_2_SPI_INSTANCE)
341 #define GYRO_2_SPI_INSTANCE NULL
342 #define GYRO_2_CS_PIN NONE
343 #define GYRO_2_EXTI_PIN NONE
344 #endif
346 #if defined(MPU_ADDRESS)
347 #define GYRO_I2C_ADDRESS MPU_ADDRESS
348 #else
349 #define GYRO_I2C_ADDRESS 0 // AUTO
350 #endif
352 #ifdef USE_MULTI_GYRO
353 #define MAX_GYRODEV_COUNT 2
354 #define MAX_ACCDEV_COUNT 2
355 #else
356 #define MAX_GYRODEV_COUNT 1
357 #define MAX_ACCDEV_COUNT 1
358 #endif
360 // gyro alignments
362 #if !defined(GYRO_1_ALIGN)
363 #define GYRO_1_ALIGN CW0_DEG
364 #endif
366 #if !defined(GYRO_2_ALIGN)
367 #define GYRO_2_ALIGN CW0_DEG
368 #endif
370 // Previously there was logic here to default GYRO_1_CUSTOM_ALIGN and GYRO_2_CUSTOM_ALIGN
371 // to CUSTOM_ALIGN_CW0_DEG if they weren't defined in the target. The defaulting logic
372 // has been moved to pg/gyrodev.c to set the custom alignment based on the sensor alignment
373 // if a custom alignment is not applied in the target.
375 #ifdef USE_VCP
376 #ifndef USB_DETECT_PIN
377 #define USB_DETECT_PIN NONE
378 #endif
379 #ifndef USB_MSC_BUTTON_PIN
380 #define USB_MSC_BUTTON_PIN NONE
381 #endif
382 #if !defined(MSC_BUTTON_IPU)
383 #define MSC_BUTTON_IPU true
384 #endif
385 #endif
387 #ifdef USE_TIMER_MGMT
388 #ifndef MAX_TIMER_PINMAP_COUNT
389 #define MAX_TIMER_PINMAP_COUNT 21 // Largest known for F405RG (OMNINXT)
390 #endif
391 #endif
393 #ifdef USE_SDCARD
394 #ifndef SDCARD_DETECT_PIN
395 #define SDCARD_DETECT_PIN NONE
396 #endif
397 #ifdef SDCARD_DETECT_INVERTED
398 #define SDCARD_DETECT_IS_INVERTED 1
399 #else
400 #define SDCARD_DETECT_IS_INVERTED 0
401 #endif
402 #ifdef USE_SDCARD_SPI
403 #ifndef SDCARD_SPI_INSTANCE
404 #define SDCARD_SPI_INSTANCE NULL
405 #endif
406 #ifndef SDCARD_SPI_CS_PIN
407 #define SDCARD_SPI_CS_PIN NONE
408 #endif
409 #endif // USE_SDCARD_SPI
410 #ifdef USE_SDCARD_SDIO
411 #ifndef SDCARD_SDIO_DMA_OPT
412 #define SDCARD_SDIO_DMA_OPT (DMA_OPT_UNUSED)
413 #endif
414 #ifndef SDIO_DEVICE
415 #define SDIO_DEVICE SDIOINVALID
416 #endif
417 #ifndef SDIO_USE_4BIT
418 #define SDIO_USE_4BIT false
419 #endif
420 #ifndef SDIO_CK_PIN
421 #define SDIO_CK_PIN NONE
422 #endif
423 #ifndef SDIO_CMD_PIN
424 #define SDIO_CMD_PIN NONE
425 #endif
426 #ifndef SDIO_D0_PIN
427 #define SDIO_D0_PIN NONE
428 #endif
429 #ifndef SDIO_D1_PIN
430 #define SDIO_D1_PIN NONE
431 #endif
432 #ifndef SDIO_D2_PIN
433 #define SDIO_D2_PIN NONE
434 #endif
435 #ifndef SDIO_D3_PIN
436 #define SDIO_D3_PIN NONE
437 #endif
438 #endif // USE_SDCARD_SDIO
439 #endif // USE_SDCARD
441 #if defined(USE_UART1) || defined(USE_UART2) || defined(USE_UART3) || defined(USE_UART4) || defined(USE_UART5) || defined(USE_UART6) || defined(USE_UART7) || defined(USE_UART8)
442 #define USE_UART
443 #endif
445 #ifdef USE_UART
446 #if defined(INVERTER_PIN_UART1) || defined(INVERTER_PIN_UART2) || defined(INVERTER_PIN_UART3) || defined(INVERTER_PIN_UART4) || defined(INVERTER_PIN_UART5) || defined(INVERTER_PIN_UART6)
447 #define USE_INVERTER
448 #endif
449 #endif
451 #ifndef DEFAULT_MIXER
452 #define DEFAULT_MIXER MIXER_QUADX
453 #endif
455 #if defined(USE_RANGEFINDER) && defined(USE_RANGEFINDER_HCSR04)
456 #ifndef RANGEFINDER_HCSR04_TRIGGER_PIN
457 #define RANGEFINDER_HCSR04_TRIGGER_PIN NONE
458 #endif
459 #ifndef RANGEFINDER_HCSR04_ECHO_PIN
460 #define RANGEFINDER_HCSR04_ECHO_PIN NONE
461 #endif
462 #endif
464 // Mag
465 #if defined(USE_MAG)
466 #ifndef MAG_SPI_INSTANCE
467 #define MAG_SPI_INSTANCE NULL
468 #endif
469 #ifndef MAG_CS_PIN
470 #define MAG_CS_PIN NONE
471 #endif
472 #ifndef MAG_I2C_INSTANCE
473 #define MAG_I2C_INSTANCE I2C_DEVICE
474 #endif
475 #endif
477 #ifndef MAG_INT_EXTI
478 #define MAG_INT_EXTI NONE
479 #endif
481 // Baro
482 #if defined(USE_BARO)
483 #ifndef BARO_SPI_INSTANCE
484 #define BARO_SPI_INSTANCE NULL
485 #endif
486 #ifndef BARO_CS_PIN
487 #define BARO_CS_PIN NONE
488 #endif
489 #ifndef BARO_I2C_INSTANCE
490 #define BARO_I2C_INSTANCE I2C_DEVICE
491 #endif
492 #ifndef BARO_XCLR_PIN
493 #define BARO_XCLR_PIN NONE
494 #endif
495 #endif
497 #ifdef USE_ADC
498 #if !defined(USE_UNIFIED_TARGET) && !defined(ADC_INSTANCE)
499 #define ADC_INSTANCE ADC1
500 #ifndef ADC1_DMA_OPT
501 #define ADC1_DMA_OPT 1
502 #endif
503 #endif
505 #if !defined(ADC1_DMA_OPT)
506 #define ADC1_DMA_OPT (DMA_OPT_UNUSED)
507 #endif
508 #if !defined(ADC2_DMA_OPT)
509 #define ADC2_DMA_OPT (DMA_OPT_UNUSED)
510 #endif
511 #if !defined(ADC3_DMA_OPT)
512 #define ADC3_DMA_OPT (DMA_OPT_UNUSED)
513 #endif
514 #if !defined(ADC4_DMA_OPT)
515 #define ADC4_DMA_OPT (DMA_OPT_UNUSED)
516 #endif
517 #if !defined(ADC5_DMA_OPT)
518 #define ADC5_DMA_OPT (DMA_OPT_UNUSED)
519 #endif
521 #endif // USE_ADC
523 #ifdef USE_SPI
524 #ifdef USE_SPI_DEVICE_1
525 #ifndef SPI1_TX_DMA_OPT
526 #define SPI1_TX_DMA_OPT (DMA_OPT_UNUSED)
527 #endif
528 #ifndef SPI1_RX_DMA_OPT
529 #define SPI1_RX_DMA_OPT (DMA_OPT_UNUSED)
530 #endif
531 #endif
532 #ifdef USE_SPI_DEVICE_2
533 #ifndef SPI2_TX_DMA_OPT
534 #define SPI2_TX_DMA_OPT (DMA_OPT_UNUSED)
535 #endif
536 #ifndef SPI2_RX_DMA_OPT
537 #define SPI2_RX_DMA_OPT (DMA_OPT_UNUSED)
538 #endif
539 #endif
540 #ifdef USE_SPI_DEVICE_3
541 #ifndef SPI3_TX_DMA_OPT
542 #define SPI3_TX_DMA_OPT (DMA_OPT_UNUSED)
543 #endif
544 #ifndef SPI3_RX_DMA_OPT
545 #define SPI3_RX_DMA_OPT (DMA_OPT_UNUSED)
546 #endif
547 #endif
548 #ifdef USE_SPI_DEVICE_4
549 #ifndef SPI4_TX_DMA_OPT
550 #define SPI4_TX_DMA_OPT (DMA_OPT_UNUSED)
551 #endif
552 #ifndef SPI4_RX_DMA_OPT
553 #define SPI4_RX_DMA_OPT (DMA_OPT_UNUSED)
554 #endif
555 #endif
556 #ifdef USE_SPI_DEVICE_5
557 #ifndef SPI5_TX_DMA_OPT
558 #define SPI5_TX_DMA_OPT (DMA_OPT_UNUSED)
559 #endif
560 #ifndef SPI5_RX_DMA_OPT
561 #define SPI5_RX_DMA_OPT (DMA_OPT_UNUSED)
562 #endif
563 #endif
564 #ifdef USE_SPI_DEVICE_6
565 #ifndef SPI6_TX_DMA_OPT
566 #define SPI6_TX_DMA_OPT (DMA_OPT_UNUSED)
567 #endif
568 #ifndef SPI6_RX_DMA_OPT
569 #define SPI6_RX_DMA_OPT (DMA_OPT_UNUSED)
570 #endif
571 #endif
572 #endif
574 #ifdef USE_UART1
575 #ifndef UART1_TX_DMA_OPT
576 #define UART1_TX_DMA_OPT (DMA_OPT_UNUSED)
577 #endif
578 #ifndef UART1_RX_DMA_OPT
579 #define UART1_RX_DMA_OPT (DMA_OPT_UNUSED)
580 #endif
581 #endif
583 #ifdef USE_UART2
584 #ifndef UART2_TX_DMA_OPT
585 #define UART2_TX_DMA_OPT (DMA_OPT_UNUSED)
586 #endif
587 #ifndef UART2_RX_DMA_OPT
588 #define UART2_RX_DMA_OPT (DMA_OPT_UNUSED)
589 #endif
590 #endif
592 #ifdef USE_UART3
593 #ifndef UART3_TX_DMA_OPT
594 #define UART3_TX_DMA_OPT (DMA_OPT_UNUSED)
595 #endif
596 #ifndef UART3_RX_DMA_OPT
597 #define UART3_RX_DMA_OPT (DMA_OPT_UNUSED)
598 #endif
599 #endif
601 #ifdef USE_UART4
602 #ifndef UART4_TX_DMA_OPT
603 #define UART4_TX_DMA_OPT (DMA_OPT_UNUSED)
604 #endif
605 #ifndef UART4_RX_DMA_OPT
606 #define UART4_RX_DMA_OPT (DMA_OPT_UNUSED)
607 #endif
608 #endif
610 #ifdef USE_UART5
611 #ifndef UART5_TX_DMA_OPT
612 #define UART5_TX_DMA_OPT (DMA_OPT_UNUSED)
613 #endif
614 #ifndef UART5_RX_DMA_OPT
615 #define UART5_RX_DMA_OPT (DMA_OPT_UNUSED)
616 #endif
617 #endif
619 #ifdef USE_UART6
620 #ifndef UART6_TX_DMA_OPT
621 #define UART6_TX_DMA_OPT (DMA_OPT_UNUSED)
622 #endif
623 #ifndef UART6_RX_DMA_OPT
624 #define UART6_RX_DMA_OPT (DMA_OPT_UNUSED)
625 #endif
626 #endif
628 #ifdef USE_UART7
629 #ifndef UART7_TX_DMA_OPT
630 #define UART7_TX_DMA_OPT (DMA_OPT_UNUSED)
631 #endif
632 #ifndef UART7_RX_DMA_OPT
633 #define UART7_RX_DMA_OPT (DMA_OPT_UNUSED)
634 #endif
635 #endif
637 #ifdef USE_UART8
638 #ifndef UART8_TX_DMA_OPT
639 #define UART8_TX_DMA_OPT (DMA_OPT_UNUSED)
640 #endif
641 #ifndef UART8_RX_DMA_OPT
642 #define UART8_RX_DMA_OPT (DMA_OPT_UNUSED)
643 #endif
644 #endif
646 #ifdef USE_UART9
647 #ifndef UART9_TX_DMA_OPT
648 #define UART9_TX_DMA_OPT (DMA_OPT_UNUSED)
649 #endif
650 #ifndef UART9_RX_DMA_OPT
651 #define UART9_RX_DMA_OPT (DMA_OPT_UNUSED)
652 #endif
653 #endif
655 #ifdef USE_UART10
656 #ifndef UART10_TX_DMA_OPT
657 #define UART10_TX_DMA_OPT (DMA_OPT_UNUSED)
658 #endif
659 #ifndef UART10_RX_DMA_OPT
660 #define UART10_RX_DMA_OPT (DMA_OPT_UNUSED)
661 #endif
662 #endif
664 #ifndef RTC6705_CS_PIN
665 #define RTC6705_CS_PIN NONE
666 #endif
668 #ifndef RTC6705_POWER_PIN
669 #define RTC6705_POWER_PIN NONE
670 #endif
672 #ifndef RTC6705_SPICLK_PIN
673 #define RTC6705_SPICLK_PIN NONE
674 #endif
676 #ifndef RTC6705_SPI_MOSI_PIN
677 #define RTC6705_SPI_MOSI_PIN NONE
678 #endif
680 #ifndef RTC6705_SPI_INSTANCE
681 #define RTC6705_SPI_INSTANCE NULL
682 #endif
684 #if defined(USE_QUAD_MIXER_ONLY)
685 #define MAX_SUPPORTED_MOTORS 4
686 #define MAX_SUPPORTED_SERVOS 1
687 #else
688 #ifndef MAX_SUPPORTED_MOTORS
689 #define MAX_SUPPORTED_MOTORS 8
690 #endif
691 #define MAX_SUPPORTED_SERVOS 8
692 #endif
694 #if defined(USE_DSHOT_BITBANG)
695 #if !defined(DSHOT_BITBANG_DEFAULT)
696 #define DSHOT_BITBANG_DEFAULT DSHOT_BITBANG_AUTO
697 #endif
699 #if !defined(DSHOT_BITBANGED_TIMER_DEFAULT)
700 #define DSHOT_BITBANGED_TIMER_DEFAULT DSHOT_BITBANGED_TIMER_AUTO
701 #endif
702 #endif // USE_DSHOT_BITBANG