Skip to content
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

Fix: platforms/common/stm32: fix for adc_start_conversion_direct not being defined for STM32F4 #1648

Conversation

lenvm
Copy link
Contributor

@lenvm lenvm commented Oct 18, 2023

Detailed description

The function adc_start_conversion_direct() is only defined for STM32F1, and not for STM32F4.

This caused a compilation issue for STM32F4 based boards.

This pull request fixes this issue, as described in #1644, by adding a check if the platform is based on an STM32F1.

Your checklist for this pull request

  • I've read the Code of Conduct
  • I've read the guidelines for contributing to this repository
  • It builds for hardware native (make PROBE_HOST=native)
  • It builds as BMDA (make PROBE_HOST=hosted)
  • I've tested it to the best of my ability
  • My commit messages provide a useful short description of what the commits do

Closing issues

Fixes #1644

…g defined for STM32F1, and not for STM32F4
Copy link
Member

@dragonmux dragonmux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, merging. Thank you for the contribution!

@dragonmux dragonmux added this to the v1.10 milestone Oct 18, 2023
@dragonmux dragonmux added Bug Confirmed bug BMP Firmware Black Magic Probe Firmware (not PC hosted software) Foreign Host Board Non Native hardware to runing Black Magic firmware on labels Oct 18, 2023
@dragonmux dragonmux merged commit ce985d8 into blackmagic-debug:main Oct 18, 2023
6 checks passed
@lenvm lenvm deleted the fix/platforms-common-stm32-timing-stm32-target-get-power branch October 18, 2023 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BMP Firmware Black Magic Probe Firmware (not PC hosted software) Bug Confirmed bug Foreign Host Board Non Native hardware to runing Black Magic firmware on
Projects
None yet
2 participants