Fix builds when PWM motor protocol is used (#13236)
[betaflight.git] / src / main / target / AT32F435G / target.h
blob7209196ad585a178070b621192d4f27d281c2c70
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_VCP
39 #define UNIFIED_SERIAL_PORT_COUNT 1
41 #define USE_UART1
42 #define USE_UART2
43 #define USE_UART3
44 #define USE_UART4
45 #define USE_UART5
46 #define USE_UART6
47 #define USE_UART7
48 #define USE_UART8
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
58 #define USE_SPI
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
64 #define USE_EXTI
65 #define USE_GYRO_EXTI
68 #define USE_I2C
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
76 #define USE_ADC
78 // Remove these undefines as support is added
79 //#undef USE_BEEPER
80 //#undef USE_LED_STRIP
81 #undef USE_TRANSPONDER
83 // #undef USE_DSHOT
84 // #undef USE_DSHOT_TELEMETRY
85 // bitbang not implemented yet
86 // #undef USE_DSHOT_BITBANG
87 // burst mode not implemented yet
88 #undef USE_DSHOT_DMAR
89 #define USE_DSHOT_BITBAND
91 #define USE_BEEPER
92 #undef USE_RX_PPM
93 #undef USE_RX_PWM
94 #undef USE_RX_SPI
95 #undef USE_RX_CC2500
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