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 "A435"
25 #define USBD_PRODUCT_STRING "Betaflight AT32F435"
32 // Development aid - invalid inputs or other failures are tested and will sit in a while(true) loop
33 // so that you can go straight to the problem with the debugger
34 #define HANG_ON_ERRORS
37 #define USE_VIRTUAL_GYRO
42 #define SERIAL_PORT_COUNT (UNIFIED_SERIAL_PORT_COUNT + 3)
44 #define TARGET_IO_PORTA 0xffff
45 #define TARGET_IO_PORTB 0xffff
46 #define TARGET_IO_PORTC 0xffff
47 #define TARGET_IO_PORTD 0xffff
50 #define USE_SPI_DEVICE_1
51 #define USE_SPI_DEVICE_2
52 #define USE_SPI_DEVICE_3
53 #define USE_SPI_DMA_ENABLE_LATE
60 #define USE_I2C_DEVICE_1
61 #define USE_I2C_DEVICE_2
62 #define USE_I2C_DEVICE_3
64 #define USE_USB_DETECT
65 #define USE_PERSISTENT_MSC_RTC
68 #define UNIFIED_SERIAL_PORT_COUNT 1
72 #define USE_PWM_OUTPUT
74 // Remove these undefines as support is added
77 #undef USE_TRANSPONDER
80 // #undef USE_DSHOT_TELEMETRY
81 // bitbang not implemented yet
82 #undef USE_DSHOT_BITBANG
83 // burst mode not implemented yet
87 #undef USE_CAMERA_CONTROL
92 #undef USE_RX_EXPRESSLRS
93 // #undef USE_SERIAL_4WAY_BLHELI_BOOTLOADER
94 #undef USE_SERIAL_4WAY_SK_BOOTLOADER
96 #define FLASH_PAGE_SIZE ((uint32_t)0x1000) // 4K sectors