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

drivers: lpadc: fix ADC command chaining #60111

Merged
merged 1 commit into from
Jul 12, 2023

Commits on Jul 6, 2023

  1. drivers: lpadc: fix ADC command chaining

    When reading multiple ADC channel in parallel, an ADC command chain will be
    build. This is similar to a linked list, as every command references the
    next command.
    
    Before this patch every ADC command after the first, would always reference
    this initial command. So that during execution only two commands (the last
    and first) would be executed which resulted in readout of only two analog
    values. As Zephyr expected more to come in, the `read_adc` function would
    block endlessly.
    
    The patch fixes the behaviour and allows a correct chain to build up.
    
    Signed-off-by: Elisabeth Friedrich <auxsys@flowerpot.me>
    tyalie committed Jul 6, 2023
    Configuration menu
    Copy the full SHA
    1ce9534 View commit details
    Browse the repository at this point in the history