Skip to content

Commit 085f14c

Browse files
haslinghuisot0tot
andauthored
Add ZEX_ATHENA_STD_PRO (#870)
* Add ZEX_ATHENA_PRO * Add GYRO_CLKIN * Rename * Add CC pin * Remove beeper from timers to avoid conflict with ledstrip * Update configs/ZEX_ATHENA_STD_PRO/config.h Co-authored-by: ot0tot <[email protected]> * Update configs/ZEX_ATHENA_STD_PRO/config.h Co-authored-by: ot0tot <[email protected]> * Remove voltage and current meter scale definitions Removed default voltage and current meter scale definitions. * Fix formatting of TIMER_PIN_MAP for TIM4 CH4 * Change manufacturer ID from HARC to ZEXM * Update configs/ZEX_ATHENA_STD_PRO/config.h Co-authored-by: ot0tot <[email protected]> * Change DMA request for TIM1 CH1 from 8 to 7 --------- Co-authored-by: ot0tot <[email protected]>
1 parent c940ae8 commit 085f14c

File tree

1 file changed

+132
-0
lines changed

1 file changed

+132
-0
lines changed
Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
/*
2+
* This file is part of Betaflight.
3+
*
4+
* Betaflight is free software. You can redistribute this software
5+
* and/or modify this software under the terms of the GNU General
6+
* Public License as published by the Free Software Foundation,
7+
* either version 3 of the License, or (at your option) any later
8+
* version.
9+
*
10+
* Betaflight is distributed in the hope that it will be useful,
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13+
*
14+
* See the GNU General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU General Public
17+
* License along with this software.
18+
*
19+
* If not, see <http://www.gnu.org/licenses/>.
20+
*/
21+
22+
#pragma once
23+
24+
#define FC_TARGET_MCU STM32H743
25+
26+
#define BOARD_NAME ZEX_ATHENA_STD_PRO
27+
#define MANUFACTURER_ID ZEXM
28+
29+
#define USE_ACC
30+
#define USE_ACC_SPI_ICM42688P
31+
#define USE_GYRO
32+
#define USE_GYRO_CLKIN
33+
#define USE_GYRO_SPI_ICM42688P
34+
#define USE_MAX7456
35+
#define USE_FLASH
36+
#define USE_FLASH_W25Q128FV
37+
#define USE_BARO
38+
#define USE_BARO_DPS310
39+
40+
#define BEEPER_PIN PE9
41+
#define CAMERA_CONTROL_PIN PB0
42+
#define MOTOR1_PIN PA0
43+
#define MOTOR2_PIN PA1
44+
#define MOTOR3_PIN PA2
45+
#define MOTOR4_PIN PA3
46+
#define MOTOR5_PIN PD12
47+
#define MOTOR6_PIN PD13
48+
#define MOTOR7_PIN PD14
49+
#define MOTOR8_PIN PD15
50+
#define SERVO1_PIN PE5
51+
#define SERVO2_PIN PE6
52+
#define LED_STRIP_PIN PA8
53+
#define UART2_TX_PIN PD5
54+
#define UART3_TX_PIN PD8
55+
#define UART4_TX_PIN PB9
56+
#define UART6_TX_PIN PC6
57+
#define UART7_TX_PIN PE8
58+
#define UART8_TX_PIN PE1
59+
#define UART1_RX_PIN PA10
60+
#define UART2_RX_PIN PD6
61+
#define UART3_RX_PIN PD9
62+
#define UART4_RX_PIN PB8
63+
#define UART6_RX_PIN PC7
64+
#define UART7_RX_PIN PE7
65+
#define UART8_RX_PIN PE0
66+
#define I2C1_SCL_PIN PB6
67+
#define I2C2_SCL_PIN PB10
68+
#define I2C1_SDA_PIN PB7
69+
#define I2C2_SDA_PIN PB11
70+
#define LED0_PIN PE3
71+
#define LED1_PIN PE4
72+
#define SPI1_SCK_PIN PA5
73+
#define SPI2_SCK_PIN PB13
74+
#define SPI3_SCK_PIN PB3
75+
#define SPI4_SCK_PIN PE12
76+
#define SPI1_SDI_PIN PA6
77+
#define SPI2_SDI_PIN PB14
78+
#define SPI3_SDI_PIN PB4
79+
#define SPI4_SDI_PIN PE13
80+
#define SPI1_SDO_PIN PD7
81+
#define SPI2_SDO_PIN PB15
82+
#define SPI3_SDO_PIN PB5
83+
#define SPI4_SDO_PIN PE14
84+
#define ADC_VBAT_PIN PC0
85+
#define ADC_CURR_PIN PC1
86+
#define PINIO1_PIN PD10
87+
#define FLASH_CS_PIN PB12
88+
#define MAX7456_SPI_CS_PIN PE2
89+
#define GYRO_1_EXTI_PIN PB2
90+
#define GYRO_2_EXTI_PIN PC14
91+
#define GYRO_1_CS_PIN PC15
92+
#define GYRO_2_CS_PIN PC13
93+
#define GYRO_1_CLKIN_PIN PA15
94+
#define GYRO_2_CLKIN_PIN PA15
95+
96+
#define TIMER_PIN_MAPPING \
97+
TIMER_PIN_MAP( 0, PA0 , 2, 0) /* TIM5 CH1 (AF2) DMA1 Stream 1 Request 55 */ \
98+
TIMER_PIN_MAP( 1, PA1 , 2, 1) /* TIM5 CH2 (AF2) DMA1 Stream 2 Request 56 */ \
99+
TIMER_PIN_MAP( 2, PA2 , 2, 2) /* TIM5 CH3 (AF2) DMA1 Stream 3 Request 57 */ \
100+
TIMER_PIN_MAP( 3, PA3 , 2, 3) /* TIM5 CH4 (AF2) DMA1 Stream 4 Request 58 */ \
101+
TIMER_PIN_MAP( 4, PD12, 1, 4) /* TIM4 CH1 (AF2) DMA1 Stream 1 Request 29 */ \
102+
TIMER_PIN_MAP( 5, PD13, 1, 5) /* TIM4 CH2 (AF2) DMA1 Stream 2 Request 30 */ \
103+
TIMER_PIN_MAP( 6, PD14, 1, 6) /* TIM4 CH3 (AF2) DMA1 Stream 3 Request 31 */ \
104+
TIMER_PIN_MAP( 7, PD15, 1, -1) /* TIM4 CH4 (AF2) No DMA for PD15 available */ \
105+
TIMER_PIN_MAP( 8, PE5 , 1, -1) /* TIM15 CH1 (AF4) DMA1 Stream 1 Request 105 */ \
106+
TIMER_PIN_MAP( 9, PE6 , 1, -1) /* TIM15 CH2 (AF4) */ \
107+
TIMER_PIN_MAP(10, PA8 , 1, 7) /* TIM1 CH1 (AF1) DMA1 Stream 1 Request 11 */ \
108+
TIMER_PIN_MAP(11, PA15, 1, -1) /* TIM2 CH1 (AF1) */ \
109+
TIMER_PIN_MAP(12, PB0 , 1, -1) /* TIM3 CH3 (AF2) */
110+
111+
#define ADC1_DMA_OPT 9 /*# ADC 1: DMA2 Stream 0 Request 9*/
112+
#define ADC3_DMA_OPT 10 /*# ADC 3: DMA2 Stream 1 Request 115*/
113+
#define TIMUP4_DMA_OPT 11 /*# TIMUP 4: DMA1 Stream 1 Request 32*/
114+
#define TIMUP5_DMA_OPT 12 /*# TIMUP 5: DMA1 Stream 0 Request 59*/
115+
116+
#define SERIALRX_UART SERIAL_PORT_USART2
117+
#define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH
118+
#define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_ON
119+
#define MAG_I2C_INSTANCE I2CDEV_2
120+
#define BARO_I2C_INSTANCE I2CDEV_1
121+
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
122+
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
123+
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
124+
#define BEEPER_INVERTED
125+
#define MAX7456_SPI_INSTANCE SPI3
126+
#define PINIO1_BOX 40
127+
#define PINIO1_CONFIG 129
128+
#define BOX_USER1_NAME "12V BEC"
129+
#define FLASH_SPI_INSTANCE SPI2
130+
#define GYRO_1_SPI_INSTANCE SPI1
131+
#define GYRO_2_SPI_INSTANCE SPI4
132+
#define GYRO_2_ALIGN CW270_DEG

0 commit comments

Comments
 (0)