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

Add i2c dump filtering #60301

Merged
merged 6 commits into from Sep 6, 2023

Commits on Aug 28, 2023

  1. i2c: use device instead of name for i2c dump messages

    This commit changes the parameter of i2c_dump_msgs function from
    string name to pointer to the device structure.
    It allows for comparison of device pointers and allow to use
    the printed device name in i2c shell commands.
    
    Signed-off-by: Michał Barnaś <mb@semihalf.com>
    barnas-michal committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    6808ccd View commit details
    Browse the repository at this point in the history
  2. i2c: improve the message dumps messages

    This commit changes the format of printed messages to align the
    following strings and make it more readable.
    
    Signed-off-by: Michał Barnaś <mb@semihalf.com>
    barnas-michal committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    6325964 View commit details
    Browse the repository at this point in the history
  3. i2c: add filtering of i2c dumped messages

    This commit adds option to dump i2c messages of only specified
    devices. It makes it easier to debug communication of specific
    i2c device instead of logging all i2c communication.
    The filter of devices is specifiec in device-tree using the
    node with "zephyr,i2c-dump-filter" compatible string.
    
    Example of device-tree node:
    i2c-dump-filter {
    	compatible = "zephyr,i2c-dump-filter";
    	devices = < &display0 >, < &sensor3 >;
    };
    
    Signed-off-by: Michał Barnaś <mb@semihalf.com>
    barnas-michal committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    edec16e View commit details
    Browse the repository at this point in the history
  4. doc: fix missing and remove obsolete links

    Fix text that should be linking to the URLs but was missing
    the link reference and remove the obsolete links.
    
    Signed-off-by: Michał Barnaś <mb@semihalf.com>
    barnas-michal committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    05cdf15 View commit details
    Browse the repository at this point in the history
  5. doc: extract the documentation about debugging to another file

    Move the chapters about Application Debugging and
    Debugging using Eclipse to another file for easier search and
    to allow more debugging chapters to be inserted here.
    
    Signed-off-by: Michał Barnaś <mb@semihalf.com>
    barnas-michal committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    fe5937d View commit details
    Browse the repository at this point in the history
  6. doc: add documenatation about I2C_DUMP_MESSAGES

    Add the documentation about I2C_DUMP_MESSAGES and about the
    I2C_DUMP_MESSAGES_FILTER in the develop/debug/index.rst doc file.
    
    Signed-off-by: Michał Barnaś <mb@semihalf.com>
    barnas-michal committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    d670f1b View commit details
    Browse the repository at this point in the history