WORKFLOW: Adding call to create or update target list in API from config.h (#12540)
[betaflight.git] / src / main / target / AT32F435 / target.h
blob167fe95669e3ae948a4ea10ce3b47222657f87d6
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 #define TARGET_BOARD_IDENTIFIER "A435"
25 #define USBD_PRODUCT_STRING "Betaflight AT32F435"
27 #ifndef AT32F435
28 #define AT32F435
29 #endif
31 #ifdef DEBUG
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
35 #endif
37 #define USE_VIRTUAL_GYRO
39 #define USE_UART1
40 #define USE_UART2
41 #define USE_UART3
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
49 #define USE_SPI
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
55 #define USE_EXTI
56 #define USE_GYRO_EXTI
59 #define USE_I2C
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
66 #define USE_VCP
68 #define UNIFIED_SERIAL_PORT_COUNT 1
70 #define USE_ADC
72 #define USE_PWM_OUTPUT
74 // Remove these undefines as support is added
75 //#undef USE_BEEPER
76 #undef USE_LED_STRIP
77 #undef USE_TRANSPONDER
79 // #undef USE_DSHOT
80 // #undef USE_DSHOT_TELEMETRY
81 // bitbang not implemented yet
82 #undef USE_DSHOT_BITBANG
83 // burst mode not implemented yet
84 #undef USE_DSHOT_DMAR
87 #undef USE_CAMERA_CONTROL
88 #undef USE_RX_PPM
89 #undef USE_RX_PWM
90 #undef USE_RX_SPI
91 #undef USE_RX_CC2500
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