From da4857f5d004bbb74d431848e614eac02df3b0d7 Mon Sep 17 00:00:00 2001
From: tianmu0897 <56705054+tianv2mu0897@users.noreply.github.com>
Date: Sun, 16 Jun 2024 22:29:11 +0800
Subject: [PATCH 01/12] Create YYRC-EAGLEF722V0
---
configs/YYRC-EAGLEF722V0 | 112 +++++++++++++++++++++++++++++++++++++++
1 file changed, 112 insertions(+)
create mode 100644 configs/YYRC-EAGLEF722V0
diff --git a/configs/YYRC-EAGLEF722V0 b/configs/YYRC-EAGLEF722V0
new file mode 100644
index 00000000..210ac8f9
--- /dev/null
+++ b/configs/YYRC-EAGLEF722V0
@@ -0,0 +1,112 @@
+/*
+ * This file is part of Betaflight.
+ *
+ * Betaflight is free software. You can redistribute this software
+ * and/or modify this software under the terms of the GNU General
+ * Public License as published by the Free Software Foundation,
+ * either version 3 of the License, or (at your option) any later
+ * version.
+ *
+ * Betaflight is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * See the GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this software.
+ *
+ * If not, see .
+ */
+
+#pragma once
+
+#define FC_TARGET_MCU STM32F7X2
+
+#define BOARD_NAME EAGLEF722
+#define MANUFACTURER_ID YYRC
+
+#define USE_ACC
+#define USE_ACC_SPI_MPU6000
+#define USE_ACCGYRO_BMI270
+#define USE_ACC_SPI_ICM42688P
+#define USE_GYRO
+#define USE_GYRO_SPI_MPU6000
+#define USE_GYRO_SPI_ICM42688P
+#define USE_BARO
+#define USE_BARO_BMP280
+#define USE_BARO_DPS310
+#define USE_FLASH
+#define USE_FLASH_M25P16
+#define USE_MAX7456
+
+#define BEEPER_PIN PC13
+#define MOTOR1_PIN PC9
+#define MOTOR2_PIN PC8
+#define MOTOR3_PIN PA8
+#define MOTOR4_PIN PA9
+#define RX_PPM_PIN PB9
+#define LED_STRIP_PIN PB3
+#define UART1_TX_PIN PB6
+#define UART2_TX_PIN PA2
+#define UART3_TX_PIN PB10
+#define UART4_TX_PIN PA0
+#define UART6_TX_PIN PC6
+#define UART1_RX_PIN PA7
+#define UART2_RX_PIN PA3
+#define UART3_RX_PIN PC11
+#define UART4_RX_PIN PA1
+#define UART5_RX_PIN PD2
+#define UART6_RX_PIN PC7
+#define I2C1_SCL_PIN PB8
+#define I2C1_SDA_PIN PB9
+#define LED0_PIN PC15
+#define LED1_PIN PC14
+#define SPI1_SCK_PIN PA5
+#define SPI2_SCK_PIN PB13
+#define SPI3_SCK_PIN PC10
+#define SPI1_SDI_PIN PA6
+#define SPI2_SDI_PIN PB14
+#define SPI3_SDI_PIN B4
+#define SPI1_SDO_PIN PA7
+#define SPI2_SDO_PIN PB15
+#define SPI3_SDO_PIN PB5
+#define ADC_VBAT_PIN PB0
+#define ADC_CURR_PIN PC3
+#define FLASH_CS_PIN PB12
+#define MAX7456_SPI_CS_PIN PA15
+#define GYRO_1_EXTI_PIN PC4
+#define GYRO_1_CS_PIN PA0
+#define USB_DETECT_PIN PA10
+#define PULLDOWN_PIN_UART1 PC0
+
+#define TIMER_PIN_MAPPING \
+ TIMER_PIN_MAP( 0, PB9 , 2, -1) \
+ TIMER_PIN_MAP( 1, PC8 , 2, 0) \
+ TIMER_PIN_MAP( 2, PC9 , 2, 0) \
+ TIMER_PIN_MAP( 3, PA8 , 1, 0) \
+ TIMER_PIN_MAP( 4, PA9 , 1, 0) \
+ TIMER_PIN_MAP( 6, PB3 , 1, 0) \
+
+#define ADC1_DMA_OPT 0
+
+#define MAG_I2C_INSTANCE (I2CDEV_1)
+#define USE_BARO
+#define BARO_I2C_INSTANCE (I2CDEV_1)
+
+#define ADC_INSTANCE ADC1
+#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
+#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
+#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
+#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
+#define DEFAULT_CURRENT_METER_SCALE 115
+#define BEEPER_INVERTED
+#define MAX7456_SPI_INSTANCE SPI3
+#define PINIO1_CONFIG 129
+#define PINIO2_CONFIG 129
+#define PINIO1_BOX 0
+#define PINIO2_BOX 40
+#define FLASH_SPI_INSTANCE SPI2
+#define GYRO_1_SPI_INSTANCE SPI1
+#define GYRO_1_ALIGN CW90_DEG
+#define GYRO_1_ALIGN_YAW 900
From a828c6525b5882872956c050622982abe9c61a44 Mon Sep 17 00:00:00 2001
From: tianmu0897 <56705054+tianv2mu0897@users.noreply.github.com>
Date: Tue, 18 Jun 2024 23:43:58 +0800
Subject: [PATCH 02/12] Update YYRC-EAGLEF722V0
update config
---
configs/YYRC-EAGLEF722V0 | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/configs/YYRC-EAGLEF722V0 b/configs/YYRC-EAGLEF722V0
index 210ac8f9..219b7706 100644
--- a/configs/YYRC-EAGLEF722V0
+++ b/configs/YYRC-EAGLEF722V0
@@ -92,7 +92,6 @@
#define MAG_I2C_INSTANCE (I2CDEV_1)
#define USE_BARO
-#define BARO_I2C_INSTANCE (I2CDEV_1)
#define ADC_INSTANCE ADC1
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
@@ -102,11 +101,11 @@
#define DEFAULT_CURRENT_METER_SCALE 115
#define BEEPER_INVERTED
#define MAX7456_SPI_INSTANCE SPI3
-#define PINIO1_CONFIG 129
-#define PINIO2_CONFIG 129
-#define PINIO1_BOX 0
-#define PINIO2_BOX 40
#define FLASH_SPI_INSTANCE SPI2
#define GYRO_1_SPI_INSTANCE SPI1
#define GYRO_1_ALIGN CW90_DEG
#define GYRO_1_ALIGN_YAW 900
+
++#define PINIO2_CONFIG 129
++#define PINIO1_BOX 0
++#define PINIO2_BOX 40
From 3515fdae69dbd6415fb18affcb01cfac7a84c759 Mon Sep 17 00:00:00 2001
From: tianmu0897 <56705054+tianv2mu0897@users.noreply.github.com>
Date: Wed, 19 Jun 2024 06:49:42 +0800
Subject: [PATCH 03/12] Update YYRC-EAGLEF722V0
it update PC0
---
configs/YYRC-EAGLEF722V0 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configs/YYRC-EAGLEF722V0 b/configs/YYRC-EAGLEF722V0
index 219b7706..1612e822 100644
--- a/configs/YYRC-EAGLEF722V0
+++ b/configs/YYRC-EAGLEF722V0
@@ -78,7 +78,7 @@
#define GYRO_1_EXTI_PIN PC4
#define GYRO_1_CS_PIN PA0
#define USB_DETECT_PIN PA10
-#define PULLDOWN_PIN_UART1 PC0
+#define PULLDOWN_PIN PC0
#define TIMER_PIN_MAPPING \
TIMER_PIN_MAP( 0, PB9 , 2, -1) \
From 7364f9e0a13ba54320dca7c10cd1d56aa30cf72c Mon Sep 17 00:00:00 2001
From: Mark Haslinghuis
Date: Wed, 19 Jun 2024 23:08:27 +0200
Subject: [PATCH 04/12] Rename YYRC-EAGLEF722V0 to YYRC-EAGLEF722
---
configs/{YYRC-EAGLEF722V0 => YYRC-EAGLEF722} | 0
1 file changed, 0 insertions(+), 0 deletions(-)
rename configs/{YYRC-EAGLEF722V0 => YYRC-EAGLEF722} (100%)
diff --git a/configs/YYRC-EAGLEF722V0 b/configs/YYRC-EAGLEF722
similarity index 100%
rename from configs/YYRC-EAGLEF722V0
rename to configs/YYRC-EAGLEF722
From 5e7ec74a7362603f152d7f13b4cbe20d9dbc6f7a Mon Sep 17 00:00:00 2001
From: Mark Haslinghuis
Date: Wed, 19 Jun 2024 23:09:20 +0200
Subject: [PATCH 05/12] Update configs/YYRC-EAGLEF722
---
configs/YYRC-EAGLEF722 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configs/YYRC-EAGLEF722 b/configs/YYRC-EAGLEF722
index 1612e822..8d9cd3c9 100644
--- a/configs/YYRC-EAGLEF722
+++ b/configs/YYRC-EAGLEF722
@@ -91,7 +91,7 @@
#define ADC1_DMA_OPT 0
#define MAG_I2C_INSTANCE (I2CDEV_1)
-#define USE_BARO
+#define BARO_I2C_INSTANCE (I2CDEV_1)
#define ADC_INSTANCE ADC1
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
From 52e0bafd327cd97e2dc00250a37a05c5fc64eafa Mon Sep 17 00:00:00 2001
From: Mark Haslinghuis
Date: Wed, 19 Jun 2024 23:10:54 +0200
Subject: [PATCH 06/12] Update configs/YYRC-EAGLEF722
---
configs/YYRC-EAGLEF722 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configs/YYRC-EAGLEF722 b/configs/YYRC-EAGLEF722
index 8d9cd3c9..5c10d167 100644
--- a/configs/YYRC-EAGLEF722
+++ b/configs/YYRC-EAGLEF722
@@ -86,7 +86,7 @@
TIMER_PIN_MAP( 2, PC9 , 2, 0) \
TIMER_PIN_MAP( 3, PA8 , 1, 0) \
TIMER_PIN_MAP( 4, PA9 , 1, 0) \
- TIMER_PIN_MAP( 6, PB3 , 1, 0) \
+ TIMER_PIN_MAP( 6, PB3 , 1, 0)
#define ADC1_DMA_OPT 0
From 85e88abac2fac97e94f48f3ee07ab1b97ede8bf6 Mon Sep 17 00:00:00 2001
From: Mark Haslinghuis
Date: Wed, 19 Jun 2024 23:12:04 +0200
Subject: [PATCH 07/12] Update configs/YYRC-EAGLEF722
---
configs/YYRC-EAGLEF722 | 4 ----
1 file changed, 4 deletions(-)
diff --git a/configs/YYRC-EAGLEF722 b/configs/YYRC-EAGLEF722
index 5c10d167..caa83161 100644
--- a/configs/YYRC-EAGLEF722
+++ b/configs/YYRC-EAGLEF722
@@ -105,7 +105,3 @@
#define GYRO_1_SPI_INSTANCE SPI1
#define GYRO_1_ALIGN CW90_DEG
#define GYRO_1_ALIGN_YAW 900
-
-+#define PINIO2_CONFIG 129
-+#define PINIO1_BOX 0
-+#define PINIO2_BOX 40
From 8a300939e0f01453ac889ec88b83dca8d669ee70 Mon Sep 17 00:00:00 2001
From: Mark Haslinghuis
Date: Wed, 19 Jun 2024 23:18:43 +0200
Subject: [PATCH 08/12] Update configs/YYRC-EAGLEF722
---
configs/YYRC-EAGLEF722 | 1 -
1 file changed, 1 deletion(-)
diff --git a/configs/YYRC-EAGLEF722 b/configs/YYRC-EAGLEF722
index caa83161..ceb7ff3e 100644
--- a/configs/YYRC-EAGLEF722
+++ b/configs/YYRC-EAGLEF722
@@ -78,7 +78,6 @@
#define GYRO_1_EXTI_PIN PC4
#define GYRO_1_CS_PIN PA0
#define USB_DETECT_PIN PA10
-#define PULLDOWN_PIN PC0
#define TIMER_PIN_MAPPING \
TIMER_PIN_MAP( 0, PB9 , 2, -1) \
From 12f9cd1d482f3e20aa08f75ab54d7a43cc4f3aad Mon Sep 17 00:00:00 2001
From: tianmu0897 <56705054+tianv2mu0897@users.noreply.github.com>
Date: Thu, 20 Jun 2024 11:56:22 +0800
Subject: [PATCH 09/12] Update YYRC-EAGLEF722
PPM is delete, DShot burst set to AUTO,and adding #define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_ON.
---
configs/YYRC-EAGLEF722 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/configs/YYRC-EAGLEF722 b/configs/YYRC-EAGLEF722
index ceb7ff3e..41ce0447 100644
--- a/configs/YYRC-EAGLEF722
+++ b/configs/YYRC-EAGLEF722
@@ -45,7 +45,6 @@
#define MOTOR2_PIN PC8
#define MOTOR3_PIN PA8
#define MOTOR4_PIN PA9
-#define RX_PPM_PIN PB9
#define LED_STRIP_PIN PB3
#define UART1_TX_PIN PB6
#define UART2_TX_PIN PA2
@@ -94,7 +93,8 @@
#define ADC_INSTANCE ADC1
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
-#define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON
+#define DEFAULT_DSHOT_BURST DSHOT_DMAR_AUTO
+#define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_ON
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
#define DEFAULT_CURRENT_METER_SCALE 115
From 7020dd71b522cdf211b04a8fc9003227c23270ec Mon Sep 17 00:00:00 2001
From: tianmu0897 <56705054+tianv2mu0897@users.noreply.github.com>
Date: Fri, 12 Jul 2024 09:31:26 +0800
Subject: [PATCH 10/12] Update YYRC-EAGLEF722
Add PINIO TO PC1
---
configs/YYRC-EAGLEF722 | 1 +
1 file changed, 1 insertion(+)
diff --git a/configs/YYRC-EAGLEF722 b/configs/YYRC-EAGLEF722
index 41ce0447..3ef5e3e1 100644
--- a/configs/YYRC-EAGLEF722
+++ b/configs/YYRC-EAGLEF722
@@ -77,6 +77,7 @@
#define GYRO_1_EXTI_PIN PC4
#define GYRO_1_CS_PIN PA0
#define USB_DETECT_PIN PA10
+#define PINIO1_PIN PC1
#define TIMER_PIN_MAPPING \
TIMER_PIN_MAP( 0, PB9 , 2, -1) \
From ad0f6cb8bdf8a2c013af8c85f0a4265501ade448 Mon Sep 17 00:00:00 2001
From: nerdCopter <56646290+nerdCopter@users.noreply.github.com>
Date: Fri, 12 Jul 2024 09:27:32 -0500
Subject: [PATCH 11/12] rename
---
configs/{YYRC-EAGLEF722 => EAGLEF722/config.h} | 0
1 file changed, 0 insertions(+), 0 deletions(-)
rename configs/{YYRC-EAGLEF722 => EAGLEF722/config.h} (100%)
diff --git a/configs/YYRC-EAGLEF722 b/configs/EAGLEF722/config.h
similarity index 100%
rename from configs/YYRC-EAGLEF722
rename to configs/EAGLEF722/config.h
From 3d60c1852c1e6fc6a094cc9abcb8f5da951553ae Mon Sep 17 00:00:00 2001
From: Mark Haslinghuis
Date: Fri, 12 Jul 2024 16:38:18 +0200
Subject: [PATCH 12/12] Update configs/EAGLEF722/config.h
---
configs/EAGLEF722/config.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/configs/EAGLEF722/config.h b/configs/EAGLEF722/config.h
index 3ef5e3e1..72c2d468 100644
--- a/configs/EAGLEF722/config.h
+++ b/configs/EAGLEF722/config.h
@@ -92,7 +92,6 @@
#define MAG_I2C_INSTANCE (I2CDEV_1)
#define BARO_I2C_INSTANCE (I2CDEV_1)
-#define ADC_INSTANCE ADC1
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
#define DEFAULT_DSHOT_BURST DSHOT_DMAR_AUTO
#define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_ON