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

hal: zephyr: fix device / word address issues with i2c writes #393

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Commits on Sep 19, 2024

  1. hal: zephyr: use device address in i2c writes

    Fixes use of word address as device address in i2c writes.
    
    Signed-off-by: Daniel Mangum <[email protected]>
    hasheddan committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    2dbd84f View commit details
    Browse the repository at this point in the history
  2. hal: zephyr: send word address when data buffer is empty

    Some callers pass a word address, but empty data buffer, when issuing
    i2c writes, such as when waking a device. Typically the HAL is passed a
    data buffer that includes the word address as the first byte, but when
    the data buffer is empty we opt to instead use the 1 byte word address
    as the data to be written.
    
    Signed-off-by: Daniel Mangum <[email protected]>
    hasheddan committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    288e825 View commit details
    Browse the repository at this point in the history