Fix pt2 and pt3 filter initialization in gyro_init.c (#13960)
[betaflight.git] / src / main / target / STM32F405 / target.h
blob94271c1ffae36cf776a7d237f41676a66abeaa18
1 /*
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)
8 * any later version.
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/>.
21 #pragma once
23 #ifndef TARGET_BOARD_IDENTIFIER
24 #define TARGET_BOARD_IDENTIFIER "S405"
25 #endif
27 #ifndef USBD_PRODUCT_STRING
28 #define USBD_PRODUCT_STRING "Betaflight STM32F405"
29 #endif
31 #ifndef STM32F405
32 #define STM32F405
33 #endif
35 #define USE_I2C_DEVICE_1
36 #define USE_I2C_DEVICE_2
37 #define USE_I2C_DEVICE_3
39 #define USE_VCP
41 #ifdef USE_SOFTSERIAL
42 #define UNIFIED_SERIAL_PORT_COUNT 3
43 #else
44 #define UNIFIED_SERIAL_PORT_COUNT 1
45 #endif
47 #define USE_UART1
48 #define USE_UART2
49 #define USE_UART3
50 #define USE_UART4
51 #define USE_UART5
52 #define USE_UART6
54 #define SERIAL_PORT_COUNT (UNIFIED_SERIAL_PORT_COUNT + 6)
56 #define USE_INVERTER
58 #define USE_SPI_DEVICE_1
59 #define USE_SPI_DEVICE_2
60 #define USE_SPI_DEVICE_3
62 #define TARGET_IO_PORTA 0xffff
63 #define TARGET_IO_PORTB 0xffff
64 #define TARGET_IO_PORTC 0xffff
65 #define TARGET_IO_PORTD 0xffff
66 #define TARGET_IO_PORTE 0xffff
67 #define TARGET_IO_PORTF 0xffff
69 #define USE_I2C
70 #define I2C_FULL_RECONFIGURABILITY
72 #define USE_DSHOT_BITBAND
74 #define USE_BEEPER
76 #define USE_SPI
77 #define SPI_FULL_RECONFIGURABILITY
78 #define USE_SPI_DMA_ENABLE_EARLY
80 #define USE_USB_DETECT
82 #define USE_ESCSERIAL
84 #define USE_ADC
86 #define USE_EXTI
88 #define USE_PID_DENOM_CHECK
89 #define USE_PID_DENOM_OVERCLOCK_LEVEL 2
91 #define FLASH_PAGE_SIZE ((uint32_t)0x4000) // 16K sectors