Fix CC2500 driver gating on USE_RX_SPI. (#12014)
[betaflight.git] / src / main / target / common_defaults_post.h
blob97ae4604e88cf9d9122c6ba929402b5dc947452a
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
499 #if !defined(ADC1_DMA_OPT)
500 #define ADC1_DMA_OPT (DMA_OPT_UNUSED)
501 #endif
502 #if !defined(ADC2_DMA_OPT)
503 #define ADC2_DMA_OPT (DMA_OPT_UNUSED)
504 #endif
505 #if !defined(ADC3_DMA_OPT)
506 #define ADC3_DMA_OPT (DMA_OPT_UNUSED)
507 #endif
508 #if !defined(ADC4_DMA_OPT)
509 #define ADC4_DMA_OPT (DMA_OPT_UNUSED)
510 #endif
511 #if !defined(ADC5_DMA_OPT)
512 #define ADC5_DMA_OPT (DMA_OPT_UNUSED)
513 #endif
515 #endif // USE_ADC
517 #ifdef USE_SPI
518 #ifdef USE_SPI_DEVICE_1
519 #ifndef SPI1_TX_DMA_OPT
520 #define SPI1_TX_DMA_OPT (DMA_OPT_UNUSED)
521 #endif
522 #ifndef SPI1_RX_DMA_OPT
523 #define SPI1_RX_DMA_OPT (DMA_OPT_UNUSED)
524 #endif
525 #endif
526 #ifdef USE_SPI_DEVICE_2
527 #ifndef SPI2_TX_DMA_OPT
528 #define SPI2_TX_DMA_OPT (DMA_OPT_UNUSED)
529 #endif
530 #ifndef SPI2_RX_DMA_OPT
531 #define SPI2_RX_DMA_OPT (DMA_OPT_UNUSED)
532 #endif
533 #endif
534 #ifdef USE_SPI_DEVICE_3
535 #ifndef SPI3_TX_DMA_OPT
536 #define SPI3_TX_DMA_OPT (DMA_OPT_UNUSED)
537 #endif
538 #ifndef SPI3_RX_DMA_OPT
539 #define SPI3_RX_DMA_OPT (DMA_OPT_UNUSED)
540 #endif
541 #endif
542 #ifdef USE_SPI_DEVICE_4
543 #ifndef SPI4_TX_DMA_OPT
544 #define SPI4_TX_DMA_OPT (DMA_OPT_UNUSED)
545 #endif
546 #ifndef SPI4_RX_DMA_OPT
547 #define SPI4_RX_DMA_OPT (DMA_OPT_UNUSED)
548 #endif
549 #endif
550 #ifdef USE_SPI_DEVICE_5
551 #ifndef SPI5_TX_DMA_OPT
552 #define SPI5_TX_DMA_OPT (DMA_OPT_UNUSED)
553 #endif
554 #ifndef SPI5_RX_DMA_OPT
555 #define SPI5_RX_DMA_OPT (DMA_OPT_UNUSED)
556 #endif
557 #endif
558 #ifdef USE_SPI_DEVICE_6
559 #ifndef SPI6_TX_DMA_OPT
560 #define SPI6_TX_DMA_OPT (DMA_OPT_UNUSED)
561 #endif
562 #ifndef SPI6_RX_DMA_OPT
563 #define SPI6_RX_DMA_OPT (DMA_OPT_UNUSED)
564 #endif
565 #endif
566 #endif
568 #ifdef USE_UART1
569 #ifndef UART1_TX_DMA_OPT
570 #define UART1_TX_DMA_OPT (DMA_OPT_UNUSED)
571 #endif
572 #ifndef UART1_RX_DMA_OPT
573 #define UART1_RX_DMA_OPT (DMA_OPT_UNUSED)
574 #endif
575 #endif
577 #ifdef USE_UART2
578 #ifndef UART2_TX_DMA_OPT
579 #define UART2_TX_DMA_OPT (DMA_OPT_UNUSED)
580 #endif
581 #ifndef UART2_RX_DMA_OPT
582 #define UART2_RX_DMA_OPT (DMA_OPT_UNUSED)
583 #endif
584 #endif
586 #ifdef USE_UART3
587 #ifndef UART3_TX_DMA_OPT
588 #define UART3_TX_DMA_OPT (DMA_OPT_UNUSED)
589 #endif
590 #ifndef UART3_RX_DMA_OPT
591 #define UART3_RX_DMA_OPT (DMA_OPT_UNUSED)
592 #endif
593 #endif
595 #ifdef USE_UART4
596 #ifndef UART4_TX_DMA_OPT
597 #define UART4_TX_DMA_OPT (DMA_OPT_UNUSED)
598 #endif
599 #ifndef UART4_RX_DMA_OPT
600 #define UART4_RX_DMA_OPT (DMA_OPT_UNUSED)
601 #endif
602 #endif
604 #ifdef USE_UART5
605 #ifndef UART5_TX_DMA_OPT
606 #define UART5_TX_DMA_OPT (DMA_OPT_UNUSED)
607 #endif
608 #ifndef UART5_RX_DMA_OPT
609 #define UART5_RX_DMA_OPT (DMA_OPT_UNUSED)
610 #endif
611 #endif
613 #ifdef USE_UART6
614 #ifndef UART6_TX_DMA_OPT
615 #define UART6_TX_DMA_OPT (DMA_OPT_UNUSED)
616 #endif
617 #ifndef UART6_RX_DMA_OPT
618 #define UART6_RX_DMA_OPT (DMA_OPT_UNUSED)
619 #endif
620 #endif
622 #ifdef USE_UART7
623 #ifndef UART7_TX_DMA_OPT
624 #define UART7_TX_DMA_OPT (DMA_OPT_UNUSED)
625 #endif
626 #ifndef UART7_RX_DMA_OPT
627 #define UART7_RX_DMA_OPT (DMA_OPT_UNUSED)
628 #endif
629 #endif
631 #ifdef USE_UART8
632 #ifndef UART8_TX_DMA_OPT
633 #define UART8_TX_DMA_OPT (DMA_OPT_UNUSED)
634 #endif
635 #ifndef UART8_RX_DMA_OPT
636 #define UART8_RX_DMA_OPT (DMA_OPT_UNUSED)
637 #endif
638 #endif
640 #ifdef USE_UART9
641 #ifndef UART9_TX_DMA_OPT
642 #define UART9_TX_DMA_OPT (DMA_OPT_UNUSED)
643 #endif
644 #ifndef UART9_RX_DMA_OPT
645 #define UART9_RX_DMA_OPT (DMA_OPT_UNUSED)
646 #endif
647 #endif
649 #ifdef USE_UART10
650 #ifndef UART10_TX_DMA_OPT
651 #define UART10_TX_DMA_OPT (DMA_OPT_UNUSED)
652 #endif
653 #ifndef UART10_RX_DMA_OPT
654 #define UART10_RX_DMA_OPT (DMA_OPT_UNUSED)
655 #endif
656 #endif
658 #ifndef RTC6705_CS_PIN
659 #define RTC6705_CS_PIN NONE
660 #endif
662 #ifndef RTC6705_POWER_PIN
663 #define RTC6705_POWER_PIN NONE
664 #endif
666 #ifndef RTC6705_SPICLK_PIN
667 #define RTC6705_SPICLK_PIN NONE
668 #endif
670 #ifndef RTC6705_SPI_MOSI_PIN
671 #define RTC6705_SPI_MOSI_PIN NONE
672 #endif
674 #ifndef RTC6705_SPI_INSTANCE
675 #define RTC6705_SPI_INSTANCE NULL
676 #endif
678 #if defined(USE_QUAD_MIXER_ONLY)
679 #define MAX_SUPPORTED_MOTORS 4
680 #define MAX_SUPPORTED_SERVOS 1
681 #else
682 #ifndef MAX_SUPPORTED_MOTORS
683 #define MAX_SUPPORTED_MOTORS 8
684 #endif
685 #define MAX_SUPPORTED_SERVOS 8
686 #endif
688 #if defined(USE_DSHOT_BITBANG)
689 #if !defined(DSHOT_BITBANG_DEFAULT)
690 #define DSHOT_BITBANG_DEFAULT DSHOT_BITBANG_AUTO
691 #endif
693 #if !defined(DSHOT_BITBANGED_TIMER_DEFAULT)
694 #define DSHOT_BITBANGED_TIMER_DEFAULT DSHOT_BITBANGED_TIMER_AUTO
695 #endif
696 #endif // USE_DSHOT_BITBANG