Go to the documentation of this file.
20 #define USE_QUAD_MIXER_ONLY 0
22 #define TARGET_BOARD_IDENTIFIER "LUX"
23 #define BOARD_HAS_VOLTAGE_DIVIDER
25 #define LED0_GPIO GPIOC
26 #define LED0_PIN Pin_15
27 #define LED0_PERIPHERAL RCC_AHBPeriph_GPIOC
29 #define LED1_GPIO GPIOC
30 #define LED1_PIN Pin_14
31 #define LED1_PERIPHERAL RCC_AHBPeriph_GPIOC
33 #define LED2_GPIO GPIOC
34 #define LED2_PIN Pin_13
35 #define LED2_PERIPHERAL RCC_AHBPeriph_GPIOC
37 #define BEEP_GPIO GPIOB
38 #define BEEP_PIN Pin_13
39 #define BEEP_PERIPHERAL RCC_AHBPeriph_GPIOB
40 #define BEEPER_INVERTED
42 #define MPU6500_CS_GPIO_CLK_PERIPHERAL RCC_AHBPeriph_GPIOA
43 #define MPU6500_CS_GPIO GPIOA
44 #define MPU6500_CS_PIN GPIO_Pin_4
45 #define MPU6500_SPI_INSTANCE SPI1
48 #define USE_SPI_DEVICE_1
50 #define SPI1_GPIO GPIOB
51 #define SPI1_GPIO_PERIPHERAL RCC_AHBPeriph_GPIOB
52 #define SPI1_SCK_PIN GPIO_Pin_3
53 #define SPI1_SCK_PIN_SOURCE GPIO_PinSource3
54 #define SPI1_MISO_PIN GPIO_Pin_4
55 #define SPI1_MISO_PIN_SOURCE GPIO_PinSource4
56 #define SPI1_MOSI_PIN GPIO_Pin_5
57 #define SPI1_MOSI_PIN_SOURCE GPIO_PinSource5
59 #define USABLE_TIMER_CHANNEL_COUNT 11
61 #define EXTI_CALLBACK_HANDLER_COUNT 1 // MPU data ready
64 #define USE_GYRO_MPU6500
65 #define USE_GYRO_SPI_MPU6500
66 #define GYRO_MPU6500_ALIGN CW270_DEG
69 #define USE_ACC_MPU6500
70 #define USE_ACC_SPI_MPU6500
71 #define ACC_MPU6500_ALIGN CW270_DEG
86 #define SERIAL_PORT_COUNT 4
88 #define UART1_TX_PIN GPIO_Pin_4
89 #define UART1_RX_PIN GPIO_Pin_5
90 #define UART1_GPIO GPIOC
91 #define UART1_GPIO_AF GPIO_AF_7
92 #define UART1_TX_PINSOURCE GPIO_PinSource4
93 #define UART1_RX_PINSOURCE GPIO_PinSource5
95 #define UART2_TX_PIN GPIO_Pin_14
96 #define UART2_RX_PIN GPIO_Pin_15
97 #define UART2_GPIO GPIOA
98 #define UART2_GPIO_AF GPIO_AF_7
99 #define UART2_TX_PINSOURCE GPIO_PinSource14
100 #define UART2_RX_PINSOURCE GPIO_PinSource15
102 #define UART3_TX_PIN GPIO_Pin_10
103 #define UART3_RX_PIN GPIO_Pin_11
104 #define UART3_GPIO GPIOB
105 #define UART3_GPIO_AF GPIO_AF_7
106 #define UART3_TX_PINSOURCE GPIO_PinSource10
107 #define UART3_RX_PINSOURCE GPIO_PinSource11
110 #define I2C_DEVICE (I2CDEV_2)
114 #define ADC_INSTANCE ADC1
115 #define ADC_AHB_PERIPHERAL RCC_AHBPeriph_DMA1
116 #define ADC_DMA_CHANNEL DMA1_Channel1
118 #define VBAT_ADC_GPIO GPIOC
119 #define VBAT_ADC_GPIO_PIN GPIO_Pin_0
120 #define VBAT_ADC_CHANNEL ADC_Channel_6
122 #define CURRENT_METER_ADC_GPIO GPIOC
123 #define CURRENT_METER_ADC_GPIO_PIN GPIO_Pin_1
124 #define CURRENT_METER_ADC_CHANNEL ADC_Channel_7
126 #define RSSI_ADC_GPIO GPIOC
127 #define RSSI_ADC_GPIO_PIN GPIO_Pin_2
128 #define RSSI_ADC_CHANNEL ADC_Channel_8
130 #define EXTERNAL1_ADC_GPIO GPIOC
131 #define EXTERNAL1_ADC_GPIO_PIN GPIO_Pin_3
132 #define EXTERNAL1_ADC_CHANNEL ADC_Channel_9
134 #define DEFAULT_RX_FEATURE FEATURE_RX_PPM
141 #define LED_STRIP_TIMER TIM16
143 #define WS2811_GPIO GPIOA
144 #define WS2811_GPIO_AHB_PERIPHERAL RCC_AHBPeriph_GPIOA
145 #define WS2811_GPIO_AF GPIO_AF_1
146 #define WS2811_PIN GPIO_Pin_6 // TIM16_CH1
147 #define WS2811_PIN_SOURCE GPIO_PinSource6
148 #define WS2811_TIMER TIM16
149 #define WS2811_TIMER_APB2_PERIPHERAL RCC_APB2Periph_TIM16
150 #define WS2811_DMA_CHANNEL DMA1_Channel3
151 #define WS2811_IRQ DMA1_Channel3_IRQn
152 #define WS2811_DMA_TC_FLAG DMA1_FLAG_TC3
153 #define WS2811_DMA_HANDLER_IDENTIFER DMA1_CH3_HANDLER
158 #define USE_MPU_DATA_READY_SIGNAL
159 #define ENSURE_MPU_DATA_READY_IS_LOW
166 #define SPEKTRUM_BIND
168 #define BIND_PORT GPIOC
169 #define BIND_PIN Pin_5
171 #define USE_SERIAL_4WAY_BLHELI_INTERFACE