Go to the documentation of this file.
18 #define TARGET_BOARD_IDENTIFIER "CC3D" // CopterControl 3D
20 #define USE_QUAD_MIXER_ONLY 0
22 #define LED0_GPIO GPIOB
23 #define LED0_PIN Pin_3 // PB3 (LED)
24 #define LED0_PERIPHERAL RCC_APB2Periph_GPIOB
27 #define INVERTER_PIN Pin_2 // PB2 (BOOT1) used as inverter select GPIO
28 #define INVERTER_GPIO GPIOB
29 #define INVERTER_PERIPHERAL RCC_APB2Periph_GPIOB
30 #define INVERTER_USART USART1
32 #define BEEP_GPIO GPIOA
33 #define BEEP_PIN Pin_15 // PA15 (Beeper)
34 #define BEEP_PERIPHERAL RCC_APB2Periph_GPIOA
36 #define MPU6000_CS_GPIO GPIOA
37 #define MPU6000_CS_PIN GPIO_Pin_4
38 #define MPU6000_SPI_INSTANCE SPI1
40 #define M25P16_CS_GPIO GPIOB
41 #define M25P16_CS_PIN GPIO_Pin_12
42 #define M25P16_SPI_INSTANCE SPI2
45 #define USE_FLASH_M25P16
47 #define USABLE_TIMER_CHANNEL_COUNT 12
50 #define USE_MPU_DATA_READY_SIGNAL
53 #define USE_GYRO_SPI_MPU6000
55 #define GYRO_MPU6000_ALIGN CW270_DEG
58 #define USE_ACC_SPI_MPU6000
60 #define ACC_MPU6000_ALIGN CW270_DEG
64 #define USE_BARO_MS5611
65 #define USE_BARO_BMP085
69 #define USE_MAG_HMC5883
80 #define USE_SOFTSERIAL1
81 #define SERIAL_PORT_COUNT 4
83 #define SOFTSERIAL_1_TIMER TIM3
84 #define SOFTSERIAL_1_TIMER_TX_HARDWARE 1 // PWM 2
85 #define SOFTSERIAL_1_TIMER_RX_HARDWARE 2 // PWM 3
88 #define USE_SPI_DEVICE_1
89 #define USE_SPI_DEVICE_2
92 #define I2C_DEVICE (I2CDEV_2) // Flex port - SCL/PB10, SDA/PB11
96 #define CURRENT_METER_ADC_GPIO GPIOB
97 #define CURRENT_METER_ADC_GPIO_PIN GPIO_Pin_1
98 #define CURRENT_METER_ADC_CHANNEL ADC_Channel_9
100 #define VBAT_ADC_GPIO GPIOA
101 #define VBAT_ADC_GPIO_PIN GPIO_Pin_0
102 #define VBAT_ADC_CHANNEL ADC_Channel_0
104 #define RSSI_ADC_GPIO GPIOB
105 #define RSSI_ADC_GPIO_PIN GPIO_Pin_0
106 #define RSSI_ADC_CHANNEL ADC_Channel_8
109 #define LED_STRIP_TIMER TIM3
110 #define WS2811_DMA_TC_FLAG DMA1_FLAG_TC6
111 #define WS2811_DMA_HANDLER_IDENTIFER DMA1_CH6_HANDLER
113 #define SPEKTRUM_BIND
115 #define BIND_PORT GPIOB
116 #define BIND_PIN Pin_11
118 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
121 #define SONAR_TRIGGER_PIN Pin_5 // (PB5)
122 #define SONAR_TRIGGER_GPIO GPIOB
123 #define SONAR_ECHO_PIN Pin_0 // (PB0) - only 3.3v ( add a 1K Ohms resistor )
124 #define SONAR_ECHO_GPIO GPIOB
125 #define SONAR_EXTI_LINE EXTI_Line0
126 #define SONAR_EXTI_PIN_SOURCE GPIO_PinSource0
127 #define SONAR_EXTI_IRQN EXTI0_IRQn
131 #define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
137 #define TARGET_MOTOR_COUNT 6