Go to the documentation of this file.
20 #define USE_QUAD_MIXER_ONLY 0
21 #define TARGET_BOARD_IDENTIFIER "103R"
24 #define LED0_GPIO GPIOB
25 #define LED0_PIN Pin_3 // PB3 (LED)
26 #define LED0_PERIPHERAL RCC_APB2Periph_GPIOB
28 #define LED1_GPIO GPIOB
29 #define LED1_PIN Pin_4 // PB4 (LED)
30 #define LED1_PERIPHERAL RCC_APB2Periph_GPIOB
32 #define LED2_GPIO GPIOD
33 #define LED2_PIN Pin_2 // PD2 (LED) - Labelled LED4
34 #define LED2_PERIPHERAL RCC_APB2Periph_GPIOD
36 #define BEEP_GPIO GPIOA
37 #define BEEP_PIN Pin_12 // PA12 (Beeper)
38 #define BEEP_PERIPHERAL RCC_APB2Periph_GPIOA
40 #define BARO_XCLR_GPIO GPIOC
41 #define BARO_XCLR_PIN Pin_13
42 #define BARO_EOC_GPIO GPIOC
43 #define BARO_EOC_PIN Pin_14
44 #define BARO_APB2_PERIPHERALS RCC_APB2Periph_GPIOC
46 #define INVERTER_PIN Pin_2 // PB2 (BOOT1) abused as inverter select GPIO
47 #define INVERTER_GPIO GPIOB
48 #define INVERTER_PERIPHERAL RCC_APB2Periph_GPIOB
49 #define INVERTER_USART USART2
52 #define USE_SPI_DEVICE_2
54 #define PORT103R_SPI_INSTANCE SPI2
55 #define PORT103R_SPI_CS_GPIO GPIOB
56 #define PORT103R_SPI_CS_PIN GPIO_Pin_12
59 #define M25P16_CS_GPIO PORT103R_SPI_CS_GPIO
60 #define M25P16_CS_PIN PORT103R_SPI_CS_PIN
61 #define M25P16_SPI_INSTANCE PORT103R_SPI_INSTANCE
63 #define MPU6000_CS_GPIO PORT103R_SPI_CS_GPIO
64 #define MPU6000_CS_PIN PORT103R_SPI_CS_PIN
65 #define MPU6000_SPI_INSTANCE PORT103R_SPI_INSTANCE
67 #define MPU6500_CS_GPIO PORT103R_SPI_CS_GPIO
68 #define MPU6500_CS_PIN PORT103R_SPI_CS_PIN
69 #define MPU6500_SPI_INSTANCE PORT103R_SPI_INSTANCE
70 #define MPU6500_CS_GPIO_CLK_PERIPHERAL RCC_APB2Periph_GPIOB
77 #define USE_GYRO_MPU6050
78 #define USE_GYRO_SPI_MPU6000
79 #define USE_GYRO_SPI_MPU6500
86 #define USE_ACC_MPU6050
87 #define USE_ACC_SPI_MPU6000
88 #define USE_ACC_SPI_MPU6500
91 #define USE_BARO_MS5611
92 #define USE_BARO_BMP085
95 #define USE_MAG_HMC5883
96 #define USE_MAG_AK8975
99 #define USE_FLASHTOOLS
100 #define USE_FLASH_M25P16
110 #define SONAR_PWM_TRIGGER_PIN Pin_8 // PWM5 (PB8) - 5v tolerant
111 #define SONAR_PWM_TRIGGER_GPIO GPIOB
112 #define SONAR_PWM_ECHO_PIN Pin_9 // PWM6 (PB9) - 5v tolerant
113 #define SONAR_PWM_ECHO_GPIO GPIOB
114 #define SONAR_PWM_EXTI_LINE EXTI_Line9
115 #define SONAR_PWM_EXTI_PIN_SOURCE GPIO_PinSource9
116 #define SONAR_PWM_EXTI_IRQN EXTI9_5_IRQn
117 #define SONAR_TRIGGER_PIN Pin_0 // RX7 (PB0) - only 3.3v ( add a 1K Ohms resistor )
118 #define SONAR_TRIGGER_GPIO GPIOB
119 #define SONAR_ECHO_PIN Pin_1 // RX8 (PB1) - only 3.3v ( add a 1K Ohms resistor )
120 #define SONAR_ECHO_GPIO GPIOB
121 #define SONAR_EXTI_LINE EXTI_Line1
122 #define SONAR_EXTI_PIN_SOURCE GPIO_PinSource1
123 #define SONAR_EXTI_IRQN EXTI1_IRQn
130 #define USE_SOFTSERIAL1
131 #define USE_SOFTSERIAL2
132 #define SERIAL_PORT_COUNT 7
134 #define SOFTSERIAL_1_TIMER TIM3
135 #define SOFTSERIAL_1_TIMER_RX_HARDWARE 4 // PWM 5
136 #define SOFTSERIAL_1_TIMER_TX_HARDWARE 5 // PWM 6
137 #define SOFTSERIAL_2_TIMER TIM3
138 #define SOFTSERIAL_2_TIMER_RX_HARDWARE 6 // PWM 7
139 #define SOFTSERIAL_2_TIMER_TX_HARDWARE 7 // PWM 8
142 #define I2C_DEVICE (I2CDEV_2)
150 #define CURRENT_METER_ADC_GPIO GPIOB
151 #define CURRENT_METER_ADC_GPIO_PIN GPIO_Pin_1
152 #define CURRENT_METER_ADC_CHANNEL ADC_Channel_9
154 #define VBAT_ADC_GPIO GPIOA
155 #define VBAT_ADC_GPIO_PIN GPIO_Pin_4
156 #define VBAT_ADC_CHANNEL ADC_Channel_4
158 #define RSSI_ADC_GPIO GPIOA
159 #define RSSI_ADC_GPIO_PIN GPIO_Pin_1
160 #define RSSI_ADC_CHANNEL ADC_Channel_1
162 #define EXTERNAL1_ADC_GPIO GPIOA
163 #define EXTERNAL1_ADC_GPIO_PIN GPIO_Pin_5
164 #define EXTERNAL1_ADC_CHANNEL ADC_Channel_5
169 #define LED_STRIP_TIMER TIM3
170 #define WS2811_DMA_TC_FLAG DMA1_FLAG_TC6
171 #define WS2811_DMA_HANDLER_IDENTIFER DMA1_CH6_HANDLER
181 #define USE_SERIAL_4WAY_BLHELI_INTERFACE