Go to the documentation of this file.
20 #define USE_QUAD_MIXER_ONLY 0
21 #define TARGET_BOARD_IDENTIFIER "RMDO" // Ready Made RC DoDo
24 #define LED0_GPIO GPIOB
25 #define LED0_PIN Pin_3
26 #define LED0_PERIPHERAL RCC_AHBPeriph_GPIOB
28 #define BEEP_GPIO GPIOC
29 #define BEEP_PIN Pin_15
30 #define BEEP_PERIPHERAL RCC_AHBPeriph_GPIOC
31 #define BEEPER_INVERTED
33 #define USABLE_TIMER_CHANNEL_COUNT 17
35 #define EXTI_CALLBACK_HANDLER_COUNT 2 // MPU data ready and MAG data ready
37 #define USE_MPU_DATA_READY_SIGNAL
38 #define ENSURE_MPU_DATA_READY_IS_LOW
40 #define USE_MAG_DATA_READY_SIGNAL
41 #define ENSURE_MAG_DATA_READY_IS_HIGH
45 #define USE_GYRO_MPU6050
46 #define GYRO_MPU6050_ALIGN CW270_DEG
49 #define USE_ACC_MPU6050
50 #define ACC_MPU6050_ALIGN CW270_DEG
53 #define USE_BARO_BMP280
58 #define USE_FLASH_M25P16
64 #define SONAR_TRIGGER_PIN Pin_0 // RC_CH7 (PB0) - only 3.3v ( add a 1K Ohms resistor )
65 #define SONAR_TRIGGER_GPIO GPIOB
66 #define SONAR_ECHO_PIN Pin_1 // RC_CH8 (PB1) - only 3.3v ( add a 1K Ohms resistor )
67 #define SONAR_ECHO_GPIO GPIOB
68 #define SONAR_EXTI_LINE EXTI_Line1
69 #define SONAR_EXTI_PIN_SOURCE EXTI_PinSource1
70 #define SONAR_EXTI_IRQN EXTI1_IRQn
75 #define USE_SOFTSERIAL1
76 #define USE_SOFTSERIAL2
77 #define SERIAL_PORT_COUNT 5
80 #define UART1_TX_PIN GPIO_Pin_9 // PA9
81 #define UART1_RX_PIN GPIO_Pin_10 // PA10
82 #define UART1_GPIO GPIOA
83 #define UART1_GPIO_AF GPIO_AF_7
84 #define UART1_TX_PINSOURCE GPIO_PinSource9
85 #define UART1_RX_PINSOURCE GPIO_PinSource10
88 #define UART2_TX_PIN GPIO_Pin_14 // PA14 / SWCLK
89 #define UART2_RX_PIN GPIO_Pin_15 // PA15
90 #define UART2_GPIO GPIOA
91 #define UART2_GPIO_AF GPIO_AF_7
92 #define UART2_TX_PINSOURCE GPIO_PinSource14
93 #define UART2_RX_PINSOURCE GPIO_PinSource15
96 #define UART3_TX_PIN GPIO_Pin_10 // PB10 (AF7)
97 #define UART3_RX_PIN GPIO_Pin_11 // PB11 (AF7)
98 #define UART3_GPIO_AF GPIO_AF_7
99 #define UART3_GPIO GPIOB
100 #define UART3_TX_PINSOURCE GPIO_PinSource10
101 #define UART3_RX_PINSOURCE GPIO_PinSource11
104 #define SOFTSERIAL_1_TIMER TIM3
105 #define SOFTSERIAL_1_TIMER_RX_HARDWARE 4 // PWM 5
106 #define SOFTSERIAL_1_TIMER_TX_HARDWARE 5 // PWM 6
107 #define SOFTSERIAL_2_TIMER TIM3
108 #define SOFTSERIAL_2_TIMER_RX_HARDWARE 6 // PWM 7
109 #define SOFTSERIAL_2_TIMER_TX_HARDWARE 7 // PWM 8
112 #define I2C_DEVICE (I2CDEV_1) // PB6/SCL, PB7/SDA
115 #define USE_SPI_DEVICE_2 // PB12,13,14,15 on AF5
117 #define M25P16_CS_GPIO GPIOB
118 #define M25P16_CS_PIN GPIO_Pin_12
119 #define M25P16_SPI_INSTANCE SPI2
122 #define BOARD_HAS_VOLTAGE_DIVIDER
125 #define ADC_INSTANCE ADC2
126 #define ADC_DMA_CHANNEL DMA2_Channel1
127 #define ADC_AHB_PERIPHERAL RCC_AHBPeriph_DMA2
129 #define VBAT_ADC_GPIO GPIOA
130 #define VBAT_ADC_GPIO_PIN GPIO_Pin_4
131 #define VBAT_ADC_CHANNEL ADC_Channel_1
133 #define CURRENT_METER_ADC_GPIO GPIOA
134 #define CURRENT_METER_ADC_GPIO_PIN GPIO_Pin_5
135 #define CURRENT_METER_ADC_CHANNEL ADC_Channel_2
137 #define RSSI_ADC_GPIO GPIOB
138 #define RSSI_ADC_GPIO_PIN GPIO_Pin_2
139 #define RSSI_ADC_CHANNEL ADC_Channel_12
142 #define LED_STRIP_TIMER TIM1
144 #define WS2811_GPIO GPIOA
145 #define WS2811_GPIO_AHB_PERIPHERAL RCC_AHBPeriph_GPIOA
146 #define WS2811_GPIO_AF GPIO_AF_6
147 #define WS2811_PIN GPIO_Pin_8
148 #define WS2811_PIN_SOURCE GPIO_PinSource8
149 #define WS2811_TIMER TIM1
150 #define WS2811_TIMER_APB2_PERIPHERAL RCC_APB2Periph_TIM1
151 #define WS2811_DMA_CHANNEL DMA1_Channel2
152 #define WS2811_IRQ DMA1_Channel2_IRQn
153 #define WS2811_DMA_TC_FLAG DMA1_FLAG_TC2
154 #define WS2811_DMA_HANDLER_IDENTIFER DMA1_CH2_HANDLER
166 #define SPEKTRUM_BIND
168 #define BIND_PORT GPIOB
169 #define BIND_PIN Pin_11
171 #define USE_SERIAL_4WAY_BLHELI_INTERFACE