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

I2C abort reason #1370

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Commits on Nov 11, 2024

  1. Make it possible to get i2c abort reason

    Currently we're returning PICO_ERROR_GENERIC for an i2c abort such as
    "No ack". Add a new PICO_ERROR_ABORT and use this if
    PICO_I2C_RETURN_ABORT_REASON is true.
    
    The abort reason comes from tx_abrt_source
    (I2C_IC_TX_ABRT_SOURCE_ABRT_*_BITS) so take the zero count from
    PICO_ERROR_ABORT, so the reason can be determined from the return code.
    
    Fixes raspberrypi#1049
    peterharperuk committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    4ac16d6 View commit details
    Browse the repository at this point in the history