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

stm32/stm32_adc.c: protect irq_attach with refcounter #11181

Merged
merged 1 commit into from Nov 14, 2023

Conversation

raiden00pl
Copy link
Contributor

Summary

stm32/stm32_adc.c: protect irq_attach with refcounter

irq_attach should only be called once for ADCs that share a common interrupt handler. We can move irq_attach to just before interrupts are enabled.

Impact

fix occasional ADC irq handler overwrites for FOC dual motor configuration on stm32f4

Testing

odrive3.6

irq_attach should only be called once for ADCs that share a common interrupt handler.
We can move irq_attach to just before interrupts are enabled.
@acassis acassis merged commit 0e40cc2 into apache:master Nov 14, 2023
26 checks passed
@raiden00pl raiden00pl deleted the stm32_adc branch November 19, 2023 09:40
@jerpelea jerpelea added this to To-Add in Release Notes - 12.4.0 Dec 27, 2023
@jerpelea jerpelea moved this from To-Add to processed in Release Notes - 12.4.0 Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants