-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add target BLUEDERRYF405 #11280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Add target BLUEDERRYF405 #11280
Conversation
Branch Targeting SuggestionYou've targeted the
If This is an automated suggestion to help route contributions to the appropriate branch. |
PR Compliance Guide 🔍All compliance sections have been disabled in the configurations. |
| DEF_TIM(TIM11, CH1, PB9, TIM_USE_BEEPER, 0, 0), // BEEPER PWM | ||
|
|
||
| // DEF_TIM(TIM9, CH2, PA3, TIM_USE_PPM, 0, 0), //RX2 | ||
| DEF_TIM(TIM5, CH3, PA2, TIM_USE_ANY, 0, 0), //TX2 softserial1_Tx |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: Comment out the conflicting timer definition for TIM5 on pin PA2 to resolve a resource conflict with UART2_TX_PIN. [possible issue, importance: 9]
| DEF_TIM(TIM5, CH3, PA2, TIM_USE_ANY, 0, 0), //TX2 softserial1_Tx | |
| // DEF_TIM(TIM5, CH3, PA2, TIM_USE_ANY, 0, 0), //TX2 softserial1_Tx |
| #define ICM42605_CS_PIN PC14 | ||
|
|
||
| #define USE_IMU_BMI270 | ||
| #define IMU_BMI270_ALIGN CW270_DEG_FLIP | ||
| #define BMI270_SPI_BUS BUS_SPI1 | ||
| #define BMI270_CS_PIN PC14 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: Assign distinct chip select (CS) pins for the ICM42605 and BMI270 IMUs to prevent potential bus conflicts, as they currently share PC14. [possible issue, importance: 7]
| #define ICM42605_CS_PIN PC14 | |
| #define USE_IMU_BMI270 | |
| #define IMU_BMI270_ALIGN CW270_DEG_FLIP | |
| #define BMI270_SPI_BUS BUS_SPI1 | |
| #define BMI270_CS_PIN PC14 | |
| #define IMU_ICM42605_CS_PIN PC14 | |
| #define BMI270_CS_PIN PC15 |
| #define SOFTSERIAL_1_TX_PIN PA2 | ||
| #define SOFTSERIAL_1_RX_PIN PA2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: Reassign SOFTSERIAL_1_RX_PIN from PA2 to another pin like PA3 to avoid conflicting with SOFTSERIAL_1_TX_PIN on the same pin. [possible issue, importance: 9]
| #define SOFTSERIAL_1_TX_PIN PA2 | |
| #define SOFTSERIAL_1_RX_PIN PA2 | |
| #define SOFTSERIAL_1_TX_PIN PA2 | |
| #define SOFTSERIAL_1_RX_PIN PA3 |
PR Type
Enhancement
Description
Add new BLUEBERRYF405 flight controller target
Configure timer hardware for 11 PWM outputs
Setup SPI devices for IMU, OSD, and SD card
Define UART, I2C, and ADC peripheral configurations
Diagram Walkthrough
File Walkthrough
target.h
Complete hardware and peripheral definitionssrc/main/target/BLUEBERRYF405/target.h
target.c
Timer and PWM output hardware mappingsrc/main/target/BLUEBERRYF405/target.c
config.c
Target-specific runtime configurationsrc/main/target/BLUEBERRYF405/config.c
CMakeLists.txt
Build system configurationsrc/main/target/BLUEBERRYF405/CMakeLists.txt