Skip to content

Commit

Permalink
[targets] fix naming conventions (#993)
Browse files Browse the repository at this point in the history
* [targets] fix naming conventions; step 1 ; WIP
* [targets] proper ID and fixes for IFLIGHT targets
* [targets] return iflight succex mini
* [targets] fix MAMBAF405US_I2C.mk ifdef
  • Loading branch information
nerdCopter authored Mar 29, 2024
1 parent c787ec2 commit e82f193
Show file tree
Hide file tree
Showing 84 changed files with 51 additions and 28 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 5 additions & 3 deletions src/main/target/IFLIGHT_BLITZ_F405/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@

#pragma once

#if defined(IFF4_TWIN_G_M)
#if defined(IFLIGHT_F405_TWING_M)
#define TARGET_BOARD_IDENTIFIER "S405"
#define USBD_PRODUCT_STRING "IFLIGHTF4TWIN_G_mpu6000"
#define USBD_PRODUCT_STRING "IFLIGHT_F405_TWING_M"
#else
#define TARGET_BOARD_IDENTIFIER "S405"
#define USBD_PRODUCT_STRING "IFLIGHTF4TWIN_G"
#define USBD_PRODUCT_STRING "IFLIGHT_F405_TWING"
#endif

#define USE_DSHOT_DMAR
Expand All @@ -47,7 +47,7 @@
#define PINIO1_PIN PC14
#define PINIO2_PIN PC15

#if defined(IFF4_TWIN_G_M)
#if defined(IFLIGHT_F405_TWING_M)
#define USE_MPU_DATA_READY_SIGNAL

#define USE_EXTI
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@

#pragma once

#define TARGET_BOARD_IDENTIFIER "S411"
#define USBD_PRODUCT_STRING "IFLIGHT F411 AIO"
#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

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
File renamed without changes.
6 changes: 4 additions & 2 deletions src/main/target/IFLIGHT_F745_AIO_V2/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -105,9 +108,6 @@
#define SPI3_MISO_PIN PC11
#define SPI3_MOSI_PIN PC12

#define USE_BARO
#define USE_BARO_BMP280

#define USE_I2C
#define USE_I2C_DEVICE_2
#define I2C2_SCL PB10
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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_MINI_F4"

#define FC_TARGET_MCU STM32F405 // not used in EmuF
#define TARGET_BOARD_IDENTIFIER "S405" // generic ID

#define LED0_PIN PB5

Expand Down Expand Up @@ -105,6 +108,9 @@
#define SPI3_MISO_PIN PC11
#define SPI3_MOSI_PIN PC12

#define USE_BARO
#define USE_BARO_BMP280

#define USE_I2C
#define USE_I2C_DEVICE_2
#define I2C2_SCL PB10
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#pragma once

#if defined(DIAT_MAMBAF405US_I2C)
#if defined(MAMBAF405US_I2C)
#define TARGET_BOARD_IDENTIFIER "S405"
#define USBD_PRODUCT_STRING "MAMBAF405US I2C"
#else
Expand Down Expand Up @@ -79,7 +79,7 @@
#define USE_I2C
#define USE_I2C_DEVICE_2
#define I2C_DEVICE (I2CDEV_2)
#if defined(DIAT_MAMBAF405US_I2C)
#if defined(MAMBAF405US_I2C)
#define I2C2_SCL PB8 // SCL pad PB10, shared with UART3TX
#define I2C2_SDA PB9 // SDA pad PB11, shared with UART3RX
#else
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit e82f193

Please sign in to comment.