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 "MOTO" // MotoLab
25 #define USE_TARGET_CONFIG
27 #define LED0_PIN PB5 // Blue LEDs - PB5
28 //#define LED1_PIN PB9 // Green LEDs - PB9
31 #define BEEPER_PIN PA0
32 #define BEEPER_INVERTED
37 #define GYRO_1_EXTI_PIN PA15
38 #define USE_MPU_DATA_READY_SIGNAL
39 #define ENSURE_MPU_DATA_READY_IS_LOW
44 #define USE_GYRO_MPU6050
45 #define USE_ACC_MPU6050
47 #define USE_GYRO_SPI_MPU6000
48 #define USE_ACC_SPI_MPU6000
50 #define GYRO_1_CS_PIN PB12
51 #define GYRO_1_SPI_INSTANCE SPI2
53 #define GYRO_1_ALIGN CW180_DEG
59 #define USE_SOFTSERIAL1
60 #define USE_SOFTSERIAL2
62 #define SERIAL_PORT_COUNT 6
65 #define ESCSERIAL_TIMER_TX_PIN PA4 // (HARDARE=0)
67 #define UART1_TX_PIN PB6
68 #define UART1_RX_PIN PB7
70 #define UART2_TX_PIN PB3
71 #define UART2_RX_PIN PB4
73 #define UART3_TX_PIN PB10 // PB10 (AF7)
74 #define UART3_RX_PIN PB11 // PB11 (AF7)
77 #define USE_I2C_DEVICE_2
78 #define I2C_DEVICE (I2CDEV_2)
83 #define USE_SPI_DEVICE_2
85 #define FLASH_CS_PIN PB12
86 #define FLASH_SPI_INSTANCE SPI2
89 #define USE_FLASH_M25P16
91 #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
93 #define ADC_INSTANCE ADC2
94 #define VBAT_ADC_PIN PA5
95 //#define CURRENT_METER_ADC_PIN PA5
96 #define RSSI_ADC_PIN PB2
98 // IO - stm32f303cc in 48pin package
99 #define TARGET_IO_PORTA 0xffff
100 #define TARGET_IO_PORTB 0xffff
101 #define TARGET_IO_PORTC (BIT(13)|BIT(14)|BIT(15))
103 #define USABLE_TIMER_CHANNEL_COUNT 10
104 #define USED_TIMERS (TIM_N(1) | TIM_N(2) | TIM_N(3) | TIM_N(15) | TIM_N(16) | TIM_N(17))