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

Conversation

hasheddan
Copy link

Please describe the purpose of this pull request

Fixes use of word address as device address in i2c writes.

Signed-off-by: Daniel Mangum [email protected]

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]

Checklist

Fixes use of word address as device address in i2c writes.

Signed-off-by: Daniel Mangum <[email protected]>
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant