NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
target.h
Go to the documentation of this file.
1 /*
2  * This file is part of Ninjaflight.
3  *
4  * Ninjaflight is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * Ninjaflight is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with Ninjaflight. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #pragma once
19 
20 #define USE_QUAD_MIXER_ONLY 0
21 #define TARGET_BOARD_IDENTIFIER "AFF3" // AFro F3
22 
23 #define USE_TILT 0
24 #define LED0_GPIO GPIOB
25 #define LED0_PIN Pin_12
26 #define LED0_PERIPHERAL RCC_AHBPeriph_GPIOB
27 #define BEEP_GPIO GPIOB
28 #define BEEP_PIN Pin_10
29 #define BEEP_PERIPHERAL RCC_AHBPeriph_GPIOB
30 
31 #define USE_BEEPER 1
32 #define LED0
33 
34 #define GYRO
35 #define ACC
36 
37 #define USB_IO
38 
39 #define USE_VCP
40 #define USE_UART1
41 #define USE_UART2
42 #define SERIAL_PORT_COUNT 3
43 
44 #define UART1_TX_PIN GPIO_Pin_9 // PA9
45 #define UART1_RX_PIN GPIO_Pin_10 // PA10
46 #define UART1_GPIO GPIOA
47 #define UART1_GPIO_AF GPIO_AF_7
48 #define UART1_TX_PINSOURCE GPIO_PinSource9
49 #define UART1_RX_PINSOURCE GPIO_PinSource10
50 
51 #define UART2_TX_PIN GPIO_Pin_5 // PD5
52 #define UART2_RX_PIN GPIO_Pin_6 // PD6
53 #define UART2_GPIO GPIOD
54 #define UART2_GPIO_AF GPIO_AF_7
55 #define UART2_TX_PINSOURCE GPIO_PinSource5
56 #define UART2_RX_PINSOURCE GPIO_PinSource6
57 
58 #define USE_I2C
59 #define I2C_DEVICE (I2CDEV_1)
60 
61 #define BLACKBOX
62 #define GPS
63 #define GTUNE
64 #define SERIAL_RX
65 #define TELEMETRY
66 #define USE_SERVOS
67 #define USE_CLI
68 #define USE_MAG 0
69 
70 #define SPEKTRUM_BIND
71 // UART2, PA3
72 #define BIND_PORT GPIOA
73 #define BIND_PIN Pin_3