Add Winbond 25Q128 flash driver
[betaflight.git] / src / main / target / common_defaults_post.h
blobdf0ce741814e8d12e1cc06ec9dc5036233e9d96c
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 STM32F1
93 #ifndef I2C1_SCL
94 #define I2C1_SCL PB8
95 #endif
96 #ifndef I2C1_SDA
97 #define I2C1_SDA PB9
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 #endif // STM32F1
107 #ifdef STM32F3
108 #ifndef I2C1_SCL
109 #define I2C1_SCL PB6
110 #endif
111 #ifndef I2C1_SDA
112 #define I2C1_SDA PB7
113 #endif
114 #ifndef I2C2_SCL
115 #define I2C2_SCL PA9
116 #endif
117 #ifndef I2C2_SDA
118 #define I2C2_SDA PA10
119 #endif
120 #endif // STM32F3
122 #ifdef STM32F4
123 #ifndef I2C1_SCL
124 #define I2C1_SCL PB6
125 #endif
126 #ifndef I2C1_SDA
127 #define I2C1_SDA PB7
128 #endif
129 #ifndef I2C2_SCL
130 #define I2C2_SCL PB10
131 #endif
132 #ifndef I2C2_SDA
133 #define I2C2_SDA PB11
134 #endif
135 #ifndef I2C3_SCL
136 #define I2C3_SCL PA8
137 #endif
138 #ifndef I2C3_SDA
139 #define I2C3_SDA PC9
140 #endif
141 #endif // STM32F4
143 #ifdef STM32F7
144 #ifndef I2C1_SCL
145 #define I2C1_SCL PB6
146 #endif
147 #ifndef I2C1_SDA
148 #define I2C1_SDA PB7
149 #endif
150 #ifndef I2C2_SCL
151 #define I2C2_SCL PB10
152 #endif
153 #ifndef I2C2_SDA
154 #define I2C2_SDA PB11
155 #endif
156 #ifndef I2C3_SCL
157 #define I2C3_SCL PA8
158 #endif
159 #ifndef I2C3_SDA
160 #define I2C3_SDA PB4
161 #endif
162 #ifndef I2C4_SCL
163 #define I2C4_SCL PD12
164 #endif
165 #ifndef I2C4_SDA
166 #define I2C4_SDA PD13
167 #endif
168 #endif // STM32F7
170 #endif // I2C_FULL_RECONFIGURABILITY
172 #ifndef I2C1_CLOCKSPEED
173 #define I2C1_CLOCKSPEED 800
174 #endif
175 #ifndef I2C2_CLOCKSPEED
176 #define I2C2_CLOCKSPEED 800
177 #endif
178 #ifndef I2C3_CLOCKSPEED
179 #define I2C3_CLOCKSPEED 800
180 #endif
181 #ifndef I2C4_CLOCKSPEED
182 #define I2C4_CLOCKSPEED 800
183 #endif
185 // Default values for internal pullup
187 #if defined(USE_I2C_PULLUP)
188 #define I2C1_PULLUP true
189 #define I2C2_PULLUP true
190 #define I2C3_PULLUP true
191 #define I2C4_PULLUP true
192 #else
193 #define I2C1_PULLUP false
194 #define I2C2_PULLUP false
195 #define I2C3_PULLUP false
196 #define I2C4_PULLUP false
197 #endif
199 // pg/bus_spi
201 #ifdef SPI_FULL_RECONFIGURABILITY
203 #ifdef USE_SPI_DEVICE_1
204 #define SPI1_SCK_PIN NONE
205 #define SPI1_MISO_PIN NONE
206 #define SPI1_MOSI_PIN NONE
207 #endif
209 #ifdef USE_SPI_DEVICE_2
210 #define SPI2_SCK_PIN NONE
211 #define SPI2_MISO_PIN NONE
212 #define SPI2_MOSI_PIN NONE
213 #endif
215 #ifdef USE_SPI_DEVICE_3
216 #define SPI3_SCK_PIN NONE
217 #define SPI3_MISO_PIN NONE
218 #define SPI3_MOSI_PIN NONE
219 #endif
221 #ifdef USE_SPI_DEVICE_4
222 #define SPI4_SCK_PIN NONE
223 #define SPI4_MISO_PIN NONE
224 #define SPI4_MOSI_PIN NONE
225 #endif
227 #ifdef USE_SPI_DEVICE_5
228 #define SPI5_SCK_PIN NONE
229 #define SPI5_MISO_PIN NONE
230 #define SPI5_MOSI_PIN NONE
231 #endif
233 #ifdef USE_SPI_DEVICE_6
234 #define SPI6_SCK_PIN NONE
235 #define SPI6_MISO_PIN NONE
236 #define SPI6_MOSI_PIN NONE
237 #endif
238 #else
240 // Pin defaults for backward compatibility
242 #ifndef SPI1_SCK_PIN
243 #define SPI1_SCK_PIN PA5
244 #define SPI1_MISO_PIN PA6
245 #define SPI1_MOSI_PIN PA7
246 #endif
248 #ifndef SPI2_SCK_PIN
249 #define SPI2_SCK_PIN PB13
250 #define SPI2_MISO_PIN PB14
251 #define SPI2_MOSI_PIN PB15
252 #endif
254 #ifndef SPI3_SCK_PIN
255 #define SPI3_SCK_PIN PB3
256 #define SPI3_MISO_PIN PB4
257 #define SPI3_MOSI_PIN PB5
258 #endif
260 #ifndef SPI4_SCK_PIN
261 #define SPI4_SCK_PIN NONE
262 #define SPI4_MISO_PIN NONE
263 #define SPI4_MOSI_PIN NONE
264 #endif
266 #ifndef SPI5_SCK_PIN
267 #define SPI5_SCK_PIN NONE
268 #define SPI5_MISO_PIN NONE
269 #define SPI5_MOSI_PIN NONE
270 #endif
272 #ifndef SPI6_SCK_PIN
273 #define SPI6_SCK_PIN NONE
274 #define SPI6_MISO_PIN NONE
275 #define SPI6_MOSI_PIN NONE
276 #endif
278 #endif
280 // Extracted from rx/rx.c and rx/rx.h
282 #define RX_MAPPABLE_CHANNEL_COUNT 8
284 #ifndef RX_SPI_DEFAULT_PROTOCOL
285 #define RX_SPI_DEFAULT_PROTOCOL 0
286 #endif
287 #ifndef SERIALRX_PROVIDER
288 #define SERIALRX_PROVIDER 0
289 #endif
291 #define RX_MIN_USEC 885
292 #define RX_MAX_USEC 2115
293 #define RX_MID_USEC 1500
295 #ifndef SPEKTRUM_BIND_PIN
296 #define SPEKTRUM_BIND_PIN NONE
297 #endif
299 #ifndef BINDPLUG_PIN
300 #define BINDPLUG_PIN NONE
301 #endif
303 #ifdef USE_RX_SPI
304 #if !defined(RX_SPI_INSTANCE)
305 #define RX_SPI_INSTANCE NULL
306 #endif
308 #if !defined(RX_NSS_PIN)
309 #define RX_NSS_PIN NONE
310 #endif
312 #ifndef RX_SPI_LED_PIN
313 #define RX_SPI_LED_PIN NONE
314 #endif
316 #if !defined(RX_SPI_EXTI_PIN)
317 #define RX_SPI_EXTI_PIN NONE
318 #endif
320 #if !defined(RX_SPI_BIND_PIN)
321 #define RX_SPI_BIND_PIN NONE
322 #endif
324 #if defined(USE_RX_CC2500)
325 #if !defined(RX_CC2500_SPI_TX_EN_PIN)
326 #define RX_CC2500_SPI_TX_EN_PIN NONE
327 #endif
329 #if !defined(RX_CC2500_SPI_LNA_EN_PIN)
330 #define RX_CC2500_SPI_LNA_EN_PIN NONE
331 #endif
333 #if !defined(RX_CC2500_SPI_ANT_SEL_PIN)
334 #define RX_CC2500_SPI_ANT_SEL_PIN NONE
335 #endif
336 #endif
338 #if defined(USE_RX_EXPRESSLRS)
339 #if !defined(RX_EXPRESSLRS_SPI_RESET_PIN)
340 #define RX_EXPRESSLRS_SPI_RESET_PIN NONE
341 #endif
343 #if !defined(RX_EXPRESSLRS_SPI_BUSY_PIN)
344 #define RX_EXPRESSLRS_SPI_BUSY_PIN NONE
345 #endif
347 #if !defined(RX_EXPRESSLRS_TIMER_INSTANCE)
348 #define RX_EXPRESSLRS_TIMER_INSTANCE NULL
349 #endif
351 #endif
353 #endif
355 // gyro hardware
357 #if !defined(GYRO_1_SPI_INSTANCE)
358 #define GYRO_1_SPI_INSTANCE NULL
359 #endif
361 #if !defined(GYRO_1_CS_PIN)
362 #define GYRO_1_CS_PIN NONE
363 #endif
365 #if !defined(GYRO_1_EXTI_PIN)
366 #define GYRO_1_EXTI_PIN NONE
367 #endif
369 // F4 and F7 single gyro boards
370 #if defined(USE_MULTI_GYRO) && !defined(GYRO_2_SPI_INSTANCE)
371 #define GYRO_2_SPI_INSTANCE NULL
372 #define GYRO_2_CS_PIN NONE
373 #define GYRO_2_EXTI_PIN NONE
374 #endif
376 #if defined(MPU_ADDRESS)
377 #define GYRO_I2C_ADDRESS MPU_ADDRESS
378 #else
379 #define GYRO_I2C_ADDRESS 0 // AUTO
380 #endif
382 #ifdef USE_MULTI_GYRO
383 #define MAX_GYRODEV_COUNT 2
384 #define MAX_ACCDEV_COUNT 2
385 #else
386 #define MAX_GYRODEV_COUNT 1
387 #define MAX_ACCDEV_COUNT 1
388 #endif
390 // gyro alignments
392 #if !defined(GYRO_1_ALIGN)
393 #define GYRO_1_ALIGN CW0_DEG
394 #endif
396 #if !defined(GYRO_2_ALIGN)
397 #define GYRO_2_ALIGN CW0_DEG
398 #endif
400 // Previously there was logic here to default GYRO_1_CUSTOM_ALIGN and GYRO_2_CUSTOM_ALIGN
401 // to CUSTOM_ALIGN_CW0_DEG if they weren't defined in the target. The defaulting logic
402 // has been moved to pg/gyrodev.c to set the custom alignment based on the sensor alignment
403 // if a custom alignment is not applied in the target.
405 #ifdef USE_VCP
406 #ifndef USB_DETECT_PIN
407 #define USB_DETECT_PIN NONE
408 #endif
409 #ifndef USB_MSC_BUTTON_PIN
410 #define USB_MSC_BUTTON_PIN NONE
411 #endif
412 #if !defined(MSC_BUTTON_IPU)
413 #define MSC_BUTTON_IPU true
414 #endif
415 #endif
417 #ifdef USE_TIMER_MGMT
418 #ifndef MAX_TIMER_PINMAP_COUNT
419 #define MAX_TIMER_PINMAP_COUNT 21 // Largest known for F405RG (OMNINXT)
420 #endif
421 #endif
423 #ifdef USE_SDCARD
424 #ifndef SDCARD_DETECT_PIN
425 #define SDCARD_DETECT_PIN NONE
426 #endif
427 #ifdef SDCARD_DETECT_INVERTED
428 #define SDCARD_DETECT_IS_INVERTED 1
429 #else
430 #define SDCARD_DETECT_IS_INVERTED 0
431 #endif
432 #ifdef USE_SDCARD_SPI
433 #ifndef SDCARD_SPI_INSTANCE
434 #define SDCARD_SPI_INSTANCE NULL
435 #endif
436 #ifndef SDCARD_SPI_CS_PIN
437 #define SDCARD_SPI_CS_PIN NONE
438 #endif
439 #endif // USE_SDCARD_SPI
440 #ifdef USE_SDCARD_SDIO
441 #ifndef SDCARD_SDIO_DMA_OPT
442 #define SDCARD_SDIO_DMA_OPT (DMA_OPT_UNUSED)
443 #endif
444 #ifndef SDIO_DEVICE
445 #define SDIO_DEVICE SDIOINVALID
446 #endif
447 #ifndef SDIO_USE_4BIT
448 #define SDIO_USE_4BIT false
449 #endif
450 #ifndef SDIO_CK_PIN
451 #define SDIO_CK_PIN NONE
452 #endif
453 #ifndef SDIO_CMD_PIN
454 #define SDIO_CMD_PIN NONE
455 #endif
456 #ifndef SDIO_D0_PIN
457 #define SDIO_D0_PIN NONE
458 #endif
459 #ifndef SDIO_D1_PIN
460 #define SDIO_D1_PIN NONE
461 #endif
462 #ifndef SDIO_D2_PIN
463 #define SDIO_D2_PIN NONE
464 #endif
465 #ifndef SDIO_D3_PIN
466 #define SDIO_D3_PIN NONE
467 #endif
468 #endif // USE_SDCARD_SDIO
469 #endif // USE_SDCARD
471 #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)
472 #define USE_UART
473 #endif
475 #ifdef USE_UART
476 #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)
477 #define USE_INVERTER
478 #endif
479 #endif
481 #ifndef DEFAULT_MIXER
482 #define DEFAULT_MIXER MIXER_QUADX
483 #endif
485 #if defined(USE_RANGEFINDER) && defined(USE_RANGEFINDER_HCSR04)
486 #ifndef RANGEFINDER_HCSR04_TRIGGER_PIN
487 #define RANGEFINDER_HCSR04_TRIGGER_PIN NONE
488 #endif
489 #ifndef RANGEFINDER_HCSR04_ECHO_PIN
490 #define RANGEFINDER_HCSR04_ECHO_PIN NONE
491 #endif
492 #endif
494 // Mag
495 #if defined(USE_MAG)
496 #ifndef MAG_SPI_INSTANCE
497 #define MAG_SPI_INSTANCE NULL
498 #endif
499 #ifndef MAG_CS_PIN
500 #define MAG_CS_PIN NONE
501 #endif
502 #ifndef MAG_I2C_INSTANCE
503 #define MAG_I2C_INSTANCE I2C_DEVICE
504 #endif
505 #endif
507 #ifndef MAG_INT_EXTI
508 #define MAG_INT_EXTI NONE
509 #endif
511 // Baro
512 #if defined(USE_BARO)
513 #ifndef BARO_SPI_INSTANCE
514 #define BARO_SPI_INSTANCE NULL
515 #endif
516 #ifndef BARO_CS_PIN
517 #define BARO_CS_PIN NONE
518 #endif
519 #ifndef BARO_I2C_INSTANCE
520 #define BARO_I2C_INSTANCE I2C_DEVICE
521 #endif
522 #ifndef BARO_XCLR_PIN
523 #define BARO_XCLR_PIN NONE
524 #endif
525 #endif
527 #ifdef USE_ADC
528 #if !defined(USE_UNIFIED_TARGET) && !defined(ADC_INSTANCE)
529 #define ADC_INSTANCE ADC1
530 #ifndef ADC1_DMA_OPT
531 #define ADC1_DMA_OPT 1
532 #endif
533 #endif
535 #if !defined(ADC1_DMA_OPT)
536 #define ADC1_DMA_OPT (DMA_OPT_UNUSED)
537 #endif
538 #if !defined(ADC2_DMA_OPT)
539 #define ADC2_DMA_OPT (DMA_OPT_UNUSED)
540 #endif
541 #if !defined(ADC3_DMA_OPT)
542 #define ADC3_DMA_OPT (DMA_OPT_UNUSED)
543 #endif
544 #if !defined(ADC4_DMA_OPT)
545 #define ADC4_DMA_OPT (DMA_OPT_UNUSED)
546 #endif
547 #if !defined(ADC5_DMA_OPT)
548 #define ADC5_DMA_OPT (DMA_OPT_UNUSED)
549 #endif
551 #endif // USE_ADC
553 #ifdef USE_SPI
554 #ifdef USE_SPI_DEVICE_1
555 #ifndef SPI1_TX_DMA_OPT
556 #define SPI1_TX_DMA_OPT (DMA_OPT_UNUSED)
557 #endif
558 #ifndef SPI1_RX_DMA_OPT
559 #define SPI1_RX_DMA_OPT (DMA_OPT_UNUSED)
560 #endif
561 #endif
562 #ifdef USE_SPI_DEVICE_2
563 #ifndef SPI2_TX_DMA_OPT
564 #define SPI2_TX_DMA_OPT (DMA_OPT_UNUSED)
565 #endif
566 #ifndef SPI2_RX_DMA_OPT
567 #define SPI2_RX_DMA_OPT (DMA_OPT_UNUSED)
568 #endif
569 #endif
570 #ifdef USE_SPI_DEVICE_3
571 #ifndef SPI3_TX_DMA_OPT
572 #define SPI3_TX_DMA_OPT (DMA_OPT_UNUSED)
573 #endif
574 #ifndef SPI3_RX_DMA_OPT
575 #define SPI3_RX_DMA_OPT (DMA_OPT_UNUSED)
576 #endif
577 #endif
578 #ifdef USE_SPI_DEVICE_4
579 #ifndef SPI4_TX_DMA_OPT
580 #define SPI4_TX_DMA_OPT (DMA_OPT_UNUSED)
581 #endif
582 #ifndef SPI4_RX_DMA_OPT
583 #define SPI4_RX_DMA_OPT (DMA_OPT_UNUSED)
584 #endif
585 #endif
586 #ifdef USE_SPI_DEVICE_5
587 #ifndef SPI5_TX_DMA_OPT
588 #define SPI5_TX_DMA_OPT (DMA_OPT_UNUSED)
589 #endif
590 #ifndef SPI5_RX_DMA_OPT
591 #define SPI5_RX_DMA_OPT (DMA_OPT_UNUSED)
592 #endif
593 #endif
594 #ifdef USE_SPI_DEVICE_6
595 #ifndef SPI6_TX_DMA_OPT
596 #define SPI6_TX_DMA_OPT (DMA_OPT_UNUSED)
597 #endif
598 #ifndef SPI6_RX_DMA_OPT
599 #define SPI6_RX_DMA_OPT (DMA_OPT_UNUSED)
600 #endif
601 #endif
602 #endif
604 #ifdef USE_UART1
605 #ifndef UART1_TX_DMA_OPT
606 #define UART1_TX_DMA_OPT (DMA_OPT_UNUSED)
607 #endif
608 #ifndef UART1_RX_DMA_OPT
609 #define UART1_RX_DMA_OPT (DMA_OPT_UNUSED)
610 #endif
611 #endif
613 #ifdef USE_UART2
614 #ifndef UART2_TX_DMA_OPT
615 #define UART2_TX_DMA_OPT (DMA_OPT_UNUSED)
616 #endif
617 #ifndef UART2_RX_DMA_OPT
618 #define UART2_RX_DMA_OPT (DMA_OPT_UNUSED)
619 #endif
620 #endif
622 #ifdef USE_UART3
623 #ifndef UART3_TX_DMA_OPT
624 #define UART3_TX_DMA_OPT (DMA_OPT_UNUSED)
625 #endif
626 #ifndef UART3_RX_DMA_OPT
627 #define UART3_RX_DMA_OPT (DMA_OPT_UNUSED)
628 #endif
629 #endif
631 #ifdef USE_UART4
632 #ifndef UART4_TX_DMA_OPT
633 #define UART4_TX_DMA_OPT (DMA_OPT_UNUSED)
634 #endif
635 #ifndef UART4_RX_DMA_OPT
636 #define UART4_RX_DMA_OPT (DMA_OPT_UNUSED)
637 #endif
638 #endif
640 #ifdef USE_UART5
641 #ifndef UART5_TX_DMA_OPT
642 #define UART5_TX_DMA_OPT (DMA_OPT_UNUSED)
643 #endif
644 #ifndef UART5_RX_DMA_OPT
645 #define UART5_RX_DMA_OPT (DMA_OPT_UNUSED)
646 #endif
647 #endif
649 #ifdef USE_UART6
650 #ifndef UART6_TX_DMA_OPT
651 #define UART6_TX_DMA_OPT (DMA_OPT_UNUSED)
652 #endif
653 #ifndef UART6_RX_DMA_OPT
654 #define UART6_RX_DMA_OPT (DMA_OPT_UNUSED)
655 #endif
656 #endif
658 #ifdef USE_UART7
659 #ifndef UART7_TX_DMA_OPT
660 #define UART7_TX_DMA_OPT (DMA_OPT_UNUSED)
661 #endif
662 #ifndef UART7_RX_DMA_OPT
663 #define UART7_RX_DMA_OPT (DMA_OPT_UNUSED)
664 #endif
665 #endif
667 #ifdef USE_UART8
668 #ifndef UART8_TX_DMA_OPT
669 #define UART8_TX_DMA_OPT (DMA_OPT_UNUSED)
670 #endif
671 #ifndef UART8_RX_DMA_OPT
672 #define UART8_RX_DMA_OPT (DMA_OPT_UNUSED)
673 #endif
674 #endif
676 #ifdef USE_UART9
677 #ifndef UART9_TX_DMA_OPT
678 #define UART9_TX_DMA_OPT (DMA_OPT_UNUSED)
679 #endif
680 #ifndef UART9_RX_DMA_OPT
681 #define UART9_RX_DMA_OPT (DMA_OPT_UNUSED)
682 #endif
683 #endif
685 #ifdef USE_UART10
686 #ifndef UART10_TX_DMA_OPT
687 #define UART10_TX_DMA_OPT (DMA_OPT_UNUSED)
688 #endif
689 #ifndef UART10_RX_DMA_OPT
690 #define UART10_RX_DMA_OPT (DMA_OPT_UNUSED)
691 #endif
692 #endif
694 #ifndef RTC6705_CS_PIN
695 #define RTC6705_CS_PIN NONE
696 #endif
698 #ifndef RTC6705_POWER_PIN
699 #define RTC6705_POWER_PIN NONE
700 #endif
702 #ifndef RTC6705_SPICLK_PIN
703 #define RTC6705_SPICLK_PIN NONE
704 #endif
706 #ifndef RTC6705_SPI_MOSI_PIN
707 #define RTC6705_SPI_MOSI_PIN NONE
708 #endif
710 #ifndef RTC6705_SPI_INSTANCE
711 #define RTC6705_SPI_INSTANCE NULL
712 #endif
714 #if defined(USE_QUAD_MIXER_ONLY)
715 #define MAX_SUPPORTED_MOTORS 4
716 #define MAX_SUPPORTED_SERVOS 1
717 #else
718 #ifndef MAX_SUPPORTED_MOTORS
719 #define MAX_SUPPORTED_MOTORS 8
720 #endif
721 #define MAX_SUPPORTED_SERVOS 8
722 #endif
724 #if defined(USE_DSHOT_BITBANG)
725 #if !defined(DSHOT_BITBANG_DEFAULT)
726 #define DSHOT_BITBANG_DEFAULT DSHOT_BITBANG_AUTO
727 #endif
729 #if !defined(DSHOT_BITBANGED_TIMER_DEFAULT)
730 #define DSHOT_BITBANGED_TIMER_DEFAULT DSHOT_BITBANGED_TIMER_AUTO
731 #endif
732 #endif // USE_DSHOT_BITBANG