Go to the documentation of this file.
20 #define USE_QUAD_MIXER_ONLY 0
21 #define TARGET_BOARD_IDENTIFIER "AFF3" // AlienFlight F3.
22 #define USE_HARDWARE_REVISION_DETECTION
26 #define HW_PERIPHERAL RCC_AHBPeriph_GPIOB
29 #define LED0_GPIO GPIOB
30 #define LED0_PIN Pin_4 // Blue LEDs - PB4
31 #define LED0_PERIPHERAL RCC_AHBPeriph_GPIOB
32 #define LED1_GPIO GPIOB
33 #define LED1_PIN Pin_5 // Green LEDs - PB5
34 #define LED1_PERIPHERAL RCC_AHBPeriph_GPIOB
37 #define LED0_GPIO_2 GPIOB
38 #define LED0_PIN_2 Pin_8 // Blue LEDs - PB8
39 #define LED0_PERIPHERAL_2 RCC_AHBPeriph_GPIOB
40 #define LED1_GPIO_2 GPIOB
41 #define LED1_PIN_2 Pin_9 // Green LEDs - PB9
42 #define LED1_PERIPHERAL_2 RCC_AHBPeriph_GPIOB
44 #define BEEP_GPIO GPIOA
45 #define BEEP_PIN Pin_5 // White LEDs - PA5
46 #define BEEP_PERIPHERAL RCC_AHBPeriph_GPIOA
48 #define USABLE_TIMER_CHANNEL_COUNT 11
50 #define EXTI_CALLBACK_HANDLER_COUNT 1 // MPU data ready
53 #define USE_MPU_DATA_READY_SIGNAL
57 #define USE_GYRO_MPU6050
58 #define USE_GYRO_MPU6500
59 #define USE_GYRO_SPI_MPU6500
61 #define GYRO_MPU6050_ALIGN CW270_DEG
62 #define GYRO_MPU6500_ALIGN CW270_DEG
65 #define USE_ACC_MPU6050
66 #define USE_ACC_MPU6500
67 #define USE_ACC_SPI_MPU6500
69 #define ACC_MPU6050_ALIGN CW270_DEG
70 #define ACC_MPU6500_ALIGN CW270_DEG
78 #define USE_MAG_AK8963
80 #define MAG_AK8963_ALIGN CW0_DEG_FLIP
89 #define USE_UART1 // Not connected - TX (PB6) RX PB7 (AF7)
90 #define USE_UART2 // Receiver - RX (PA3)
91 #define USE_UART3 // Not connected - 10/RX (PB11) 11/TX (PB10)
92 #define SERIAL_PORT_COUNT 4
94 #define UART1_TX_PIN GPIO_Pin_6 // PB6
95 #define UART1_RX_PIN GPIO_Pin_7 // PB7
96 #define UART1_GPIO GPIOB
97 #define UART1_GPIO_AF GPIO_AF_7
98 #define UART1_TX_PINSOURCE GPIO_PinSource6
99 #define UART1_RX_PINSOURCE GPIO_PinSource7
101 #define UART2_TX_PIN GPIO_Pin_2 // PA2
102 #define UART2_RX_PIN GPIO_Pin_3 // PA3
103 #define UART2_GPIO GPIOA
104 #define UART2_GPIO_AF GPIO_AF_7
105 #define UART2_TX_PINSOURCE GPIO_PinSource2
106 #define UART2_RX_PINSOURCE GPIO_PinSource3
108 #define UART3_TX_PIN GPIO_Pin_10 // PB10 (AF7)
109 #define UART3_RX_PIN GPIO_Pin_11 // PB11 (AF7)
110 #define UART3_GPIO_AF GPIO_AF_7
111 #define UART3_GPIO GPIOB
112 #define UART3_TX_PINSOURCE GPIO_PinSource10
113 #define UART3_RX_PINSOURCE GPIO_PinSource11
117 #define I2C_DEVICE (I2CDEV_2) // SDA (PA10/AF4), SCL (PA9/AF4)
119 #define I2C2_SCL_GPIO GPIOA
120 #define I2C2_SCL_GPIO_AF GPIO_AF_4
121 #define I2C2_SCL_PIN GPIO_Pin_9
122 #define I2C2_SCL_PIN_SOURCE GPIO_PinSource9
123 #define I2C2_SCL_CLK_SOURCE RCC_AHBPeriph_GPIOA
124 #define I2C2_SDA_GPIO GPIOA
125 #define I2C2_SDA_GPIO_AF GPIO_AF_4
126 #define I2C2_SDA_PIN GPIO_Pin_10
127 #define I2C2_SDA_PIN_SOURCE GPIO_PinSource10
128 #define I2C2_SDA_CLK_SOURCE RCC_AHBPeriph_GPIOA
137 #define USE_SPI_DEVICE_3
139 #define MPU6500_CS_GPIO_CLK_PERIPHERAL RCC_AHBPeriph_GPIOA
140 #define MPU6500_CS_GPIO GPIOA
141 #define MPU6500_CS_PIN GPIO_Pin_15
142 #define MPU6500_SPI_INSTANCE SPI3
146 #define ADC_INSTANCE ADC2
147 #define ADC_DMA_CHANNEL DMA2_Channel1
148 #define ADC_AHB_PERIPHERAL RCC_AHBPeriph_DMA2
152 #define VBAT_ADC_GPIO GPIOA
153 #define VBAT_ADC_GPIO_PIN GPIO_Pin_4
154 #define VBAT_ADC_CHANNEL ADC_Channel_1
156 #define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL
157 #define DEFAULT FEATURES FEATURE_MOTOR_STOP
167 #define SPEKTRUM_BIND
169 #define BIND_PORT GPIOA
170 #define BIND_PIN Pin_3
174 #define HARDWARE_BIND_PLUG
177 #define BINDPLUG_PORT GPIOB
178 #define BINDPLUG_PIN Pin_12