-
Notifications
You must be signed in to change notification settings - Fork 0
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
FWT-45 adding Multiple Actually Dangerous Commits (Multi ADC Support) #108
Conversation
…e adc to use. Made it an enum, so depending on if you are using f4xx or f3xx you can have different options.
…32_t that contains the channel as well as the ADC peripherals it supports (1, 2, and/or 3). Added hard fault if the channel does not support the peripheral
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see anything obvious that is causing your issue, but maybe using a struct for each ADC will better distinguish between the ADCs and fix your issue in the process.
…ank var and 1 buffer
…its one 1 channel per adc
…eature/tmb5932/MultiADC # Conflicts: # include/core/io/platform/f4xx/ADCf4xx.hpp # src/core/io/platform/f4xx/ADCf4xx.cpp
…eature/tmb5932/MultiADC # Conflicts: # src/core/io/platform/f4xx/ADCf4xx.cpp
…re/tmb5932/MultiADC
…eature/tmb5932/MultiADC
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All changes make sense and look good
Just tested f4 and f3 adc single and multi (tested with diff combos all the way up to all 3 adc periphs with 3 channels on each), and everything works. Helldog saw it 👨🍳 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 little details
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good, just a few little things.
Co-authored-by: Matthew Heller <[email protected]>
Super cool really cool working multi adc for F4xx. Also made F4xx single adc work properly, as apparently it was broken before 👎