Skip to content

Conversation

@ALTracer
Copy link
Contributor

Detailed description

  • This is a new feature for one platform, enhancing feature-parity with other platforms.
  • The existing problem is blackpill-f4 measuring "Unknown" target voltage.
  • This PR solves that by providing an implementation of platform_target_voltage() through ADC1 channel 8 pin PB0 expecting 1/2 resistive divided VTRef (routed by external add-on board, for example).

Idea implemented in November of 2024. Not runtime-tested since then because I don't have add-on boards.

Your checklist for this pull request

Closing issues

@ALTracer ALTracer force-pushed the feature/blackpill-f4-adc branch from 5bec05e to ef1650d Compare April 25, 2025 18:04
* Power-off ADC after use (only used upon target scan)
* Prescale ADC1 clock (APB2) by 4
* Refactor regular sequence of 2 channels into two launches
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant