Blackbox device type 'file' (SITL) considered working when file handler is available
[inav.git] / src / main / target / ANYFCM7 / target.h
blobce6cb0e63ab529c11ec6889e9cf9bd0aa46b0bcd
1 /*
2 * This file is part of Cleanflight.
4 * Cleanflight 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.
9 * Cleanflight 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.
14 * You should have received a copy of the GNU General Public License
15 * along with Cleanflight. If not, see <http://www.gnu.org/licenses/>.
18 #pragma once
20 #define TARGET_BOARD_IDENTIFIER "ANYM"
22 #define USBD_PRODUCT_STRING "AnyFCM7"
24 #define LED0 PB6 //red
25 #define LED1 PB9 //blue
27 #define BEEPER PB2 // Unused pin, can be mapped to elsewhere
28 #define BEEPER_INVERTED
30 #define MPU6000_CS_PIN PA4
31 #define MPU6000_SPI_BUS BUS_SPI1
33 #define USE_IMU_MPU6000
34 #define IMU_MPU6000_ALIGN CW270_DEG
36 #define USE_MAG
37 #define MAG_I2C_BUS BUS_I2C2
38 #define USE_MAG_ALL
40 #define TEMPERATURE_I2C_BUS BUS_I2C2
42 #define USE_BARO
43 #define BARO_I2C_BUS BUS_I2C2
44 #define USE_BARO_MS5611
46 #define PITOT_I2C_BUS BUS_I2C2
48 #define USE_VCP
49 #define VBUS_SENSING_PIN PA8
51 #define USE_UART1
52 #define UART1_RX_PIN PA10
53 #define UART1_TX_PIN PA9
55 //#define USE_UART2
56 #define UART2_RX_PIN PA3
57 #define UART2_TX_PIN PA2
59 //#define USE_UART3
60 #define UART3_RX_PIN PB11
61 #define UART3_TX_PIN PB10
63 #define USE_UART4
64 #define UART4_RX_PIN PC11
65 #define UART4_TX_PIN PC10
67 #define USE_UART5
68 #define UART5_RX_PIN PD2
69 #define UART5_TX_PIN PC12
71 #define USE_UART6
72 #define UART6_RX_PIN PC7
73 #define UART6_TX_PIN PC6
75 #define SERIAL_PORT_COUNT 5 //VCP, USART1, UART4, UART5, USART6
77 #define USE_SPI
78 #define USE_SPI_DEVICE_1
79 #define USE_SPI_DEVICE_2
80 #define USE_SPI_DEVICE_3
82 #define SPI1_NSS_PIN PA4
83 #define SPI1_SCK_PIN PA5
84 #define SPI1_MISO_PIN PA6
85 #define SPI1_MOSI_PIN PA7
87 #define SPI2_NSS_PIN PB12
88 #define SPI2_SCK_PIN PB13
89 #define SPI2_MISO_PIN PC2
90 #define SPI2_MOSI_PIN PC1
92 #define SPI3_NSS_PIN PD2
93 #define SPI3_SCK_PIN PC10
94 #define SPI3_MISO_PIN PC11
95 #define SPI3_MOSI_PIN PC12
97 #define M25P16_CS_PIN PB12
98 #define M25P16_SPI_BUS BUS_SPI2
99 #define USE_FLASHFS
100 #define USE_FLASH_M25P16
101 #define ENABLE_BLACKBOX_LOGGING_ON_SPIFLASH_BY_DEFAULT
103 #define USE_MAX7456
104 #define MAX7456_SPI_BUS BUS_SPI3
105 #define MAX7456_CS_PIN SPI3_NSS_PIN
107 #define USE_I2C
108 #define USE_I2C_DEVICE_2
110 #define USE_ADC
111 #define ADC_CHANNEL_1_PIN PC0
112 #define VBAT_ADC_CHANNEL ADC_CHN_1
114 #define DEFAULT_RX_TYPE RX_TYPE_SERIAL
115 #define SERIALRX_PROVIDER SERIALRX_SBUS
117 #define USE_SERIAL_4WAY_BLHELI_INTERFACE
119 // Number of available PWM outputs
120 #define MAX_PWM_OUTPUT_PORTS 15
122 #define TARGET_IO_PORTA 0xffff
123 #define TARGET_IO_PORTB 0xffff
124 #define TARGET_IO_PORTC 0xffff
125 #define TARGET_IO_PORTD 0xffff
126 #define TARGET_IO_PORTE 0xffff