2 * This file is part of Cleanflight and Betaflight.
4 * Cleanflight and Betaflight are free software. You can redistribute
5 * this software and/or modify this software under the terms of the
6 * GNU General Public License as published by the Free Software
7 * Foundation, either version 3 of the License, or (at your option)
10 * Cleanflight and Betaflight are distributed in the hope that they
11 * will be useful, but WITHOUT ANY WARRANTY; without even the implied
12 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 * See the GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this software.
18 * If not, see <http://www.gnu.org/licenses/>.
23 #define TARGET_BOARD_IDENTIFIER "DOGE"
34 #define BEEPER_PIN PB2
35 #define BEEPER_INVERTED
38 #define USE_SPI_DEVICE_1
39 #define USE_SPI_DEVICE_2
42 #define SPI1_SCK_PIN PB3
44 #define SPI1_MISO_PIN PB4
46 #define SPI1_MOSI_PIN PB5
48 #define SPI1_NSS_PIN PC14
51 #define SPI2_SCK_PIN PB13
53 #define SPI2_MISO_PIN PB14
55 #define SPI2_MOSI_PIN PB15
57 #define SPI2_NSS_PIN PB12
60 #define GYRO_1_CS_PIN SPI1_NSS_PIN
61 #define GYRO_1_SPI_INSTANCE SPI1
64 #define BARO_CS_PIN SPI2_NSS_PIN
65 #define BARO_SPI_INSTANCE SPI2
68 #define USE_FLASH_M25P16
69 #define FLASH_SPI_SHARED
70 #define FLASH_CS_PIN PC15
71 #define FLASH_SPI_INSTANCE SPI2
74 #define USE_GYRO_SPI_MPU6500
75 #define USE_GYRO_SPI_MPU6000
76 #define GYRO_1_ALIGN CW270_DEG
79 #define USE_ACC_SPI_MPU6500
80 #define USE_ACC_SPI_MPU6000
83 #define USE_BARO_BMP280
84 #define USE_BARO_SPI_BMP280
90 #define USE_SOFTSERIAL1
91 #define USE_SOFTSERIAL2
93 #define SERIAL_PORT_COUNT 6
96 #define ESCSERIAL_TIMER_TX_PIN PA8 // (Hardware=0)
98 #define UART1_TX_PIN PB6
99 #define UART1_RX_PIN PB7
101 #define UART2_TX_PIN PA2
102 #define UART2_RX_PIN PA3
104 #define UART3_TX_PIN PB10
105 #define UART3_RX_PIN PB11
107 #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
109 #define ADC_INSTANCE ADC2
110 #define ADC24_DMA_REMAP // moves ADC2 DMA from DMA2ch1 to DMA2ch3.
111 #define VBAT_ADC_PIN PA4
112 #define CURRENT_METER_ADC_PIN PA5
114 // mpu_int definition in sensors/initialisation.c
116 #define USE_GYRO_EXTI
117 #define GYRO_1_EXTI_PIN PC13
118 #define USE_MPU_DATA_READY_SIGNAL
119 #define ENSURE_MPU_DATA_READY_IS_LOW
121 #define DEFAULT_RX_FEATURE FEATURE_RX_PPM
123 // !!TODO - check the TARGET_IO_PORTs are correct
124 #define TARGET_IO_PORTA 0xffff
125 #define TARGET_IO_PORTB 0xffff
126 #define TARGET_IO_PORTC (BIT(13)|BIT(14)|BIT(15))
127 #define TARGET_IO_PORTF (BIT(0)|BIT(1)|BIT(3)|BIT(4))
129 // timer definitions in drivers/timer.c
130 // channel mapping in drivers/pwm_mapping.c
131 // only 6 outputs available on hardware
132 #define USABLE_TIMER_CHANNEL_COUNT 10
133 #define USED_TIMERS (TIM_N(1) | TIM_N(2) | TIM_N(3) | TIM_N(8) | TIM_N(16))