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

[Backport v3.4-branch] drivers: lpadc: fix ADC command chaining #60287

Closed
wants to merge 1 commit into from

Commits on Jul 12, 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>
    (cherry picked from commit f4356f3)
    tyalie authored and github-actions[bot] committed Jul 12, 2023
    Configuration menu
    Copy the full SHA
    e63339f View commit details
    Browse the repository at this point in the history