Skip to content

stm32_adc_utils: make constexpr some functions, add _OPAMP_internal_channel_to_ADC - #554

Open
Moddingear wants to merge 1 commit into
simplefoc:devfrom
Moddingear:stm32_adc_utils_improvements
Open

stm32_adc_utils: make constexpr some functions, add _OPAMP_internal_channel_to_ADC#554
Moddingear wants to merge 1 commit into
simplefoc:devfrom
Moddingear:stm32_adc_utils_improvements

Conversation

@Moddingear

@Moddingear Moddingear commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Description

This makes constexpr some functions, allowing the compiler to statically resolve the values instead of having to include the code.

It also adds _OPAMP_internal_channel_to_ADC, which does what you'd expect on stm32g4

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Test Configuration/Setup:

  • Hardware: Phoque1 (STSPIN32G4)
  • IDE: Platformio

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