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
39 #define UNIFIED_SERIAL_PORT_COUNT 1
50 #define SERIAL_PORT_COUNT (UNIFIED_SERIAL_PORT_COUNT + 8)
52 #define TARGET_IO_PORTA 0xffff
53 #define TARGET_IO_PORTB 0xffff
54 #define TARGET_IO_PORTC 0xffff
55 #define TARGET_IO_PORTD 0xffff
56 #define TARGET_IO_PORTH 0xffff
59 #define USE_SPI_DEVICE_1
60 #define USE_SPI_DEVICE_2
61 #define USE_SPI_DEVICE_3
62 #define USE_SPI_DMA_ENABLE_LATE
69 #define USE_I2C_DEVICE_1
70 #define USE_I2C_DEVICE_2
71 #define USE_I2C_DEVICE_3
73 #define USE_USB_DETECT
74 #define USE_PERSISTENT_MSC_RTC
78 // Remove these undefines as support is added
80 //#undef USE_LED_STRIP
81 #undef USE_TRANSPONDER
84 // #undef USE_DSHOT_TELEMETRY
85 // bitbang not implemented yet
86 // #undef USE_DSHOT_BITBANG
87 // burst mode not implemented yet
89 #define USE_DSHOT_BITBAND
96 #undef USE_RX_EXPRESSLRS
97 // #undef USE_SERIAL_4WAY_BLHELI_BOOTLOADER
98 #undef USE_SERIAL_4WAY_SK_BOOTLOADER
100 #define FLASH_PAGE_SIZE ((uint32_t)0x0800) // 2K sectors