From 7b8617cd9f286b5be46f46c79d4212f9aa078f0e Mon Sep 17 00:00:00 2001 From: nerdCopter <56646290+nerdCopter@users.noreply.github.com> Date: Thu, 28 Mar 2024 10:31:21 -0500 Subject: [PATCH] [targets] proper ID for IFLIGHT targets --- src/main/target/IFLIGHT_BLITZ_F405/target.h | 8 +++++--- src/main/target/IFLIGHT_F411_AIO32/target.h | 5 ++++- src/main/target/IFLIGHT_F411_PRO/target.h | 8 ++++++-- src/main/target/IFLIGHT_F722_TWING/target.h | 6 ++++-- src/main/target/IFLIGHT_F745_AIO/target.h | 6 ++++-- src/main/target/IFLIGHT_F745_AIO_V2/target.h | 6 ++++-- src/main/target/IFLIGHT_SUCCEX_E_F4/target.h | 7 +++++-- src/main/target/IFLIGHT_SUCCEX_E_F7/target.h | 6 ++++-- 8 files changed, 36 insertions(+), 16 deletions(-) diff --git a/src/main/target/IFLIGHT_BLITZ_F405/target.h b/src/main/target/IFLIGHT_BLITZ_F405/target.h index 45e86da05b..bb0d69a611 100644 --- a/src/main/target/IFLIGHT_BLITZ_F405/target.h +++ b/src/main/target/IFLIGHT_BLITZ_F405/target.h @@ -21,9 +21,11 @@ //#define USE_TARGET_CONFIG -#define TARGET_BOARD_IDENTIFIER "IBF4" -#define TARGET_MANUFACTURER_IDENTIFIER "IFRC" -#define USBD_PRODUCT_STRING "IFLIGHT_BLITZ_F405" +#define TARGET_MANUFACTURER_IDENTIFIER "IFRC" +#define USBD_PRODUCT_STRING "IFLIGHT_BLITZ_F405" + +#define FC_TARGET_MCU STM32F405 // not used in EmuF +#define TARGET_BOARD_IDENTIFIER "S405" // generic ID #define LED0_PIN PC15 diff --git a/src/main/target/IFLIGHT_F411_AIO32/target.h b/src/main/target/IFLIGHT_F411_AIO32/target.h index 4467642b74..057462579d 100644 --- a/src/main/target/IFLIGHT_F411_AIO32/target.h +++ b/src/main/target/IFLIGHT_F411_AIO32/target.h @@ -20,9 +20,12 @@ #pragma once -#define TARGET_BOARD_IDENTIFIER "S411" +#define TARGET_MANUFACTURER_IDENTIFIER "IFRC" #define USBD_PRODUCT_STRING "IFLIGHT_F411_AIO32" +#define FC_TARGET_MCU STM32F411 // not used in EmuF +#define TARGET_BOARD_IDENTIFIER "S411" // generic ID + #define LED0_PIN PB5 #define USE_BEEPER diff --git a/src/main/target/IFLIGHT_F411_PRO/target.h b/src/main/target/IFLIGHT_F411_PRO/target.h index 599f5cf2f9..2539723608 100644 --- a/src/main/target/IFLIGHT_F411_PRO/target.h +++ b/src/main/target/IFLIGHT_F411_PRO/target.h @@ -19,8 +19,12 @@ */ #pragma once -#define TARGET_BOARD_IDENTIFIER "S411" -#define USBD_PRODUCT_STRING "IFLIGHT_F411_PRO" + +#define TARGET_MANUFACTURER_IDENTIFIER "IFRC" +#define USBD_PRODUCT_STRING "IFLIGHT_F411_PRO" + +#define FC_TARGET_MCU STM32F411 // not used in EmuF +#define TARGET_BOARD_IDENTIFIER "S411" // generic ID #define ENABLE_DSHOT_DMAR true diff --git a/src/main/target/IFLIGHT_F722_TWING/target.h b/src/main/target/IFLIGHT_F722_TWING/target.h index dcaf56de6f..535a4b68b0 100644 --- a/src/main/target/IFLIGHT_F722_TWING/target.h +++ b/src/main/target/IFLIGHT_F722_TWING/target.h @@ -20,9 +20,11 @@ #pragma once -#define TARGET_BOARD_IDENTIFIER "S7X2" +#define TARGET_MANUFACTURER_IDENTIFIER "IFRC" +#define USBD_PRODUCT_STRING "IFLIGHT_F722_TWING" -#define USBD_PRODUCT_STRING "IFLIGHT F7 TWIN G" +#define FC_TARGET_MCU STM32F7X2 // not used in EmuF +#define TARGET_BOARD_IDENTIFIER "S7X2" // generic ID #define USE_DUAL_GYRO diff --git a/src/main/target/IFLIGHT_F745_AIO/target.h b/src/main/target/IFLIGHT_F745_AIO/target.h index 0cf4b6b8b7..c32ed746ed 100644 --- a/src/main/target/IFLIGHT_F745_AIO/target.h +++ b/src/main/target/IFLIGHT_F745_AIO/target.h @@ -20,10 +20,12 @@ #pragma once -#define TARGET_BOARD_IDENTIFIER "IFRC" - +#define TARGET_MANUFACTURER_IDENTIFIER "IFRC" #define USBD_PRODUCT_STRING "IFLIGHT_F745_AIO" +#define FC_TARGET_MCU STM32F745 // not used in EmuF +#define TARGET_BOARD_IDENTIFIER "S745" // generic ID + #define LED0_PIN PC13 #define USE_BEEPER diff --git a/src/main/target/IFLIGHT_F745_AIO_V2/target.h b/src/main/target/IFLIGHT_F745_AIO_V2/target.h index e771a75672..e9a9e73836 100644 --- a/src/main/target/IFLIGHT_F745_AIO_V2/target.h +++ b/src/main/target/IFLIGHT_F745_AIO_V2/target.h @@ -20,10 +20,12 @@ #pragma once -#define TARGET_BOARD_IDENTIFIER "IFRC" - +#define TARGET_MANUFACTURER_IDENTIFIER "IFRC" #define USBD_PRODUCT_STRING "IFLIGHT_F745_AIO_V2" +#define FC_TARGET_MCU STM32F745 // not used in EmuF +#define TARGET_BOARD_IDENTIFIER "S745" // generic ID + #define ENABLE_DSHOT_DMAR true #define LED0_PIN PC13 diff --git a/src/main/target/IFLIGHT_SUCCEX_E_F4/target.h b/src/main/target/IFLIGHT_SUCCEX_E_F4/target.h index 90b11b7bcb..a52e5907db 100644 --- a/src/main/target/IFLIGHT_SUCCEX_E_F4/target.h +++ b/src/main/target/IFLIGHT_SUCCEX_E_F4/target.h @@ -20,8 +20,11 @@ #pragma once -#define TARGET_BOARD_IDENTIFIER "IFRC" -#define USBD_PRODUCT_STRING "IFLIGHT_SUCCEX_E_F4" +#define TARGET_MANUFACTURER_IDENTIFIER "IFRC" +#define USBD_PRODUCT_STRING "IFLIGHT_SUCCEX_E_F4" + +#define FC_TARGET_MCU STM32F405 // not used in EmuF +#define TARGET_BOARD_IDENTIFIER "S405" // generic ID #define LED0_PIN PB5 diff --git a/src/main/target/IFLIGHT_SUCCEX_E_F7/target.h b/src/main/target/IFLIGHT_SUCCEX_E_F7/target.h index 372fc9d935..e456cbc6b8 100644 --- a/src/main/target/IFLIGHT_SUCCEX_E_F7/target.h +++ b/src/main/target/IFLIGHT_SUCCEX_E_F7/target.h @@ -20,9 +20,11 @@ #pragma once -#define TARGET_BOARD_IDENTIFIER "S7X2" +#define TARGET_MANUFACTURER_IDENTIFIER "IFRC" +#define USBD_PRODUCT_STRING "IFLIGHT_SUCCEX_E_F7" -#define USBD_PRODUCT_STRING "IFLIGHT_SUCCEX_E_F7" +#define FC_TARGET_MCU STM32F7X2 // not used in EmuF +#define TARGET_BOARD_IDENTIFIER "S7X2" // generic ID #define ENABLE_DSHOT_DMAR true