-
-
Notifications
You must be signed in to change notification settings - Fork 785
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
Feature: platforms/blackpill-f4: only setup LED_BOOTLOADER once #1649
Feature: platforms/blackpill-f4: only setup LED_BOOTLOADER once #1649
Conversation
@dragonmux, now that v1.10 has been released, can this pull request be merged? |
It's on our list to review as we need to properly spend the time on this to understand what it's doing and if it's taking things in the direction we want the code base going or not. We'll try and get a review done in the next few days. |
@lenvm I took the liberty of reviewing this as I'm coming back to clean up and post platform-specific changes from my branches.
If you have issues with platform LED placement -- I suggest you remap them to normal GPIOs, not the power-switch source-limited ones in PC13-15 range. I implemented an enhanced systick led show and it works just fine thanks to you inverting Additionally, I propose dropping the LED_BOOTLOADER entity altogether for the platform, because its sole purpose is to be constantly lit when in BMPbootloader (and we can't do anything to force ST MaskROM to blink it) via a By the way, which bootloader option of this platform are you using -- ST or BMP? TL,DR: I fail to see the problem that this PR solves. |
Having given this a review finally (sorry it took so long!) we agree with ALTracer that we're not sure that switching all the set/clear calls to |
c647483
to
3f1c5ee
Compare
@dragonmux, thanks for the review! I have updated the branch according to your request. It should be ready to merge now :) |
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.
This looks good to us. Please rebase it on main
and then we'll get this merged. Thank you for the contribution!
…DER, to prevent setting up LED_BOOTLOADER twice
3f1c5ee
to
7efd034
Compare
I have rebased on main. Please merge! |
Detailed description
This pull request slightly updates the code for the blackpill-f4 platforms:
#ifdef
around the line of the code where theLED_BOOTLOADER
pin is set up usinggpio_mode_setup()
for the second time in the same file, in caseBMP_BOOTLOADER
is not defined. This change is made as it is redundant to setup theLED_BOOTLOADER
pin twice.Your checklist for this pull request
make PROBE_HOST=native
)make PROBE_HOST=hosted
)