Skip to content

stm32_adc_utils: add regular rank from index, add channel from index#537

Merged
runger1101001 merged 1 commit into
simplefoc:devfrom
Moddingear:stm32_adc_utils
May 22, 2026
Merged

stm32_adc_utils: add regular rank from index, add channel from index#537
runger1101001 merged 1 commit into
simplefoc:devfrom
Moddingear:stm32_adc_utils

Conversation

@Moddingear
Copy link
Copy Markdown
Contributor

Added uint32_t _getADCChannel(uint8_t ind) to get ADC channel from index. uint32_t _getADCChannel(PinName pin, ADC_TypeDef *AdcHandle ) now uses it (it used to be inside).

Added uint32_t _getADCRegularRank(uint8_t ind) to get ADC regular rank from index.

Exposed ADC_TypeDef* _indexToADC(uint8_t index)

@runger1101001 runger1101001 merged commit 1a21c1e into simplefoc:dev May 22, 2026
30 checks passed
@runger1101001 runger1101001 added this to the 2.4.1_Release milestone May 22, 2026
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.

2 participants