-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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 and kinetis adc driver move from ISR (hrt_call_every) to new WQ #12638
Conversation
61f7366
to
169fa9c
Compare
The other minor changes are to bring stm32 and kinetis into sync so that we can factor out the large common portion next. |
} else { | ||
_to_system_power = orb_advertise(ORB_ID(system_power), &system_power); | ||
} | ||
_to_system_power.publish(system_power); | ||
|
||
#endif // BOARD_ADC_USB_CONNECTED | ||
} | ||
|
||
uint16_t board_adc_sample(unsigned channel) | ||
{ |
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.
@dagar I think this needs to be re-thought from an atomic point of view.
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.
Which part? Are you thinking about the conversion per sample or getting multiple samples (+ system_power) gpios together?
6d00b8d
to
29a2d30
Compare
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.
Did you test this on and F4 and F7 and K66?
adc test
No change in |
@davids5 Not the bigger ADC cleanup I was hoping for, but here's a simple quick change to at least get the ADC sampling (and system_power floating point work) out of HRT.