Go to the documentation of this file.
20 #define USE_QUAD_MIXER_ONLY 0
21 #define TARGET_BOARD_IDENTIFIER "SPKY" // SParKY
24 #define LED0_GPIO GPIOB
25 #define LED0_PIN Pin_4 // Blue (Rev 1 & 2) - PB4
26 #define LED0_PERIPHERAL RCC_AHBPeriph_GPIOB
27 #define LED1_GPIO GPIOB
28 #define LED1_PIN Pin_5 // Green (Rev 1) / Red (Rev 2) - PB5
29 #define LED1_PERIPHERAL RCC_AHBPeriph_GPIOB
31 #define USABLE_TIMER_CHANNEL_COUNT 11
35 #define USE_GYRO_MPU6050
37 #define GYRO_MPU6050_ALIGN CW270_DEG
40 #define USE_ACC_MPU6050
42 #define ACC_MPU6050_ALIGN CW270_DEG
45 #define USE_BARO_MS5611
48 #define USE_MAG_AK8975
50 #define MAG_AK8975_ALIGN CW180_DEG_FLIP
58 #define USE_UART1 // Conn 1 - TX (PB6) RX PB7 (AF7)
59 #define USE_UART2 // Input - RX (PA3)
60 #define USE_UART3 // Servo out - 10/RX (PB11) 11/TX (PB10)
61 #define SERIAL_PORT_COUNT 4
63 #define UART1_TX_PIN GPIO_Pin_6 // PB6
64 #define UART1_RX_PIN GPIO_Pin_7 // PB7
65 #define UART1_GPIO GPIOB
66 #define UART1_GPIO_AF GPIO_AF_7
67 #define UART1_TX_PINSOURCE GPIO_PinSource6
68 #define UART1_RX_PINSOURCE GPIO_PinSource7
70 #define UART2_TX_PIN GPIO_Pin_2 // PA2 - Clashes with PWM6 input.
71 #define UART2_RX_PIN GPIO_Pin_3 // PA3
72 #define UART2_GPIO GPIOA
73 #define UART2_GPIO_AF GPIO_AF_7
74 #define UART2_TX_PINSOURCE GPIO_PinSource2
75 #define UART2_RX_PINSOURCE GPIO_PinSource3
77 #define UART3_TX_PIN GPIO_Pin_10 // PB10 (AF7)
78 #define UART3_RX_PIN GPIO_Pin_11 // PB11 (AF7)
79 #define UART3_GPIO_AF GPIO_AF_7
80 #define UART3_GPIO GPIOB
81 #define UART3_TX_PINSOURCE GPIO_PinSource10
82 #define UART3_RX_PINSOURCE GPIO_PinSource11
87 #define I2C_DEVICE (I2CDEV_2) // SDA (PA10/AF4), SCL (PA9/AF4)
89 #define I2C2_SCL_GPIO GPIOA
90 #define I2C2_SCL_GPIO_AF GPIO_AF_4
91 #define I2C2_SCL_PIN GPIO_Pin_9
92 #define I2C2_SCL_PIN_SOURCE GPIO_PinSource9
93 #define I2C2_SCL_CLK_SOURCE RCC_AHBPeriph_GPIOA
94 #define I2C2_SDA_GPIO GPIOA
95 #define I2C2_SDA_GPIO_AF GPIO_AF_4
96 #define I2C2_SDA_PIN GPIO_Pin_10
97 #define I2C2_SDA_PIN_SOURCE GPIO_PinSource10
98 #define I2C2_SDA_CLK_SOURCE RCC_AHBPeriph_GPIOA
102 #define ADC_INSTANCE ADC2
103 #define ADC_DMA_CHANNEL DMA2_Channel1
104 #define ADC_AHB_PERIPHERAL RCC_AHBPeriph_DMA2
106 #define VBAT_ADC_GPIO GPIOA
107 #define VBAT_ADC_GPIO_PIN GPIO_Pin_4
108 #define VBAT_ADC_CHANNEL ADC_Channel_1
110 #define CURRENT_METER_ADC_GPIO GPIOA
111 #define CURRENT_METER_ADC_GPIO_PIN GPIO_Pin_7
112 #define CURRENT_METER_ADC_CHANNEL ADC_Channel_4
114 #define DEFAULT_RX_FEATURE FEATURE_RX_PPM
126 #define SONAR_TRIGGER_PIN Pin_2 // PWM6 (PA2) - only 3.3v ( add a 1K Ohms resistor )
127 #define SONAR_TRIGGER_GPIO GPIOA
128 #define SONAR_ECHO_PIN Pin_1 // PWM7 (PB1) - only 3.3v ( add a 1K Ohms resistor )
129 #define SONAR_ECHO_GPIO GPIOB
130 #define SONAR_EXTI_LINE EXTI_Line1
131 #define SONAR_EXTI_PIN_SOURCE EXTI_PinSource1
132 #define SONAR_EXTI_IRQN EXTI1_IRQn
137 #define LED_STRIP_TIMER TIM16
139 #define WS2811_GPIO GPIOA
140 #define WS2811_GPIO_AHB_PERIPHERAL RCC_AHBPeriph_GPIOA
141 #define WS2811_GPIO_AF GPIO_AF_1
142 #define WS2811_PIN GPIO_Pin_6 // TIM16_CH1
143 #define WS2811_PIN_SOURCE GPIO_PinSource6
144 #define WS2811_TIMER TIM16
145 #define WS2811_TIMER_APB2_PERIPHERAL RCC_APB2Periph_TIM16
146 #define WS2811_DMA_CHANNEL DMA1_Channel3
147 #define WS2811_IRQ DMA1_Channel3_IRQn
148 #define WS2811_DMA_TC_FLAG DMA1_FLAG_TC3
149 #define WS2811_DMA_HANDLER_IDENTIFER DMA1_CH3_HANDLER
156 #define LED_STRIP_TIMER TIM17
158 #define WS2811_GPIO GPIOA
159 #define WS2811_GPIO_AHB_PERIPHERAL RCC_AHBPeriph_GPIOA
160 #define WS2811_GPIO_AF GPIO_AF_1
161 #define WS2811_PIN GPIO_Pin_7 // TIM17_CH1
162 #define WS2811_PIN_SOURCE GPIO_PinSource7
163 #define WS2811_TIMER TIM17
164 #define WS2811_TIMER_APB2_PERIPHERAL RCC_APB2Periph_TIM17
165 #define WS2811_DMA_CHANNEL DMA1_Channel7
166 #define WS2811_IRQ DMA1_Channel7_IRQn
167 #define WS2811_DMA_TC_FLAG DMA1_FLAG_TC7
168 #define WS2811_DMA_HANDLER_IDENTIFER DMA1_CH7_HANDLER
173 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
175 #define SPEKTRUM_BIND
177 #define BIND_PORT GPIOA
178 #define BIND_PIN Pin_3