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

Refactor example code #12

Merged
merged 10 commits into from
Jul 21, 2023
Merged

Refactor example code #12

merged 10 commits into from
Jul 21, 2023

Commits on Jul 19, 2023

  1. examples: linux: Factor out app_rpmsg_create_ept into common file

    Signed-off-by: Andrew Davis <afd@ti.com>
    glneo committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    2315dc8 View commit details
    Browse the repository at this point in the history
  2. examples: linux: Factor out get_rpmsg_ept_dev_name into common file

    Signed-off-by: Andrew Davis <afd@ti.com>
    glneo committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    7c36634 View commit details
    Browse the repository at this point in the history
  3. examples: linux: Factor out bind_rpmsg_chrdev into common file

    Signed-off-by: Andrew Davis <afd@ti.com>
    glneo committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    071fcd9 View commit details
    Browse the repository at this point in the history
  4. examples: linux: Factor out get_rpmsg_chrdev_fd into common file

    Signed-off-by: Andrew Davis <afd@ti.com>
    glneo committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    9f49ab4 View commit details
    Browse the repository at this point in the history
  5. examples: linux: Factor out lookup_channel into common file

    Signed-off-by: Andrew Davis <afd@ti.com>
    glneo committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    1c832e2 View commit details
    Browse the repository at this point in the history
  6. examples: rpmsg-mat-mul: Cleanup matrix printout

    Make matrix_print() into a common function and use it for both printing
    the input and output matrices. Also add 3 wide padding so the output
    looks more like a table when the numbers are not all the same length.
    
    Signed-off-by: Andrew Davis <afd@ti.com>
    glneo committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    14a6805 View commit details
    Browse the repository at this point in the history
  7. examples: linux: Remove uses of global variables

    Usually considered bad practice and the code is more readable without.
    
    Signed-off-by: Andrew Davis <afd@ti.com>
    glneo committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    aae12b1 View commit details
    Browse the repository at this point in the history
  8. examples: rpmsg-mat-mul: Only send 32bit shutdown message

    Signed-off-by: Andrew Davis <afd@ti.com>
    glneo committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    ec48eb9 View commit details
    Browse the repository at this point in the history
  9. examples: rpmsg-mat-mul: Cleanup printouts and remove debug statements

    Signed-off-by: Andrew Davis <afd@ti.com>
    glneo committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    96b4529 View commit details
    Browse the repository at this point in the history
  10. examples: linux: Close file on error in bind_rpmsg_chrdev

    The file should be closed when returning from this function in the error
    path. Fix this here.
    
    Signed-off-by: Andrew Davis <afd@ti.com>
    glneo committed Jul 19, 2023
    Configuration menu
    Copy the full SHA
    d6c88aa View commit details
    Browse the repository at this point in the history