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

[TWI] add bus sensing logic #1111

Merged
merged 7 commits into from
Dec 1, 2024
Merged

[TWI] add bus sensing logic #1111

merged 7 commits into from
Dec 1, 2024

Conversation

stnolting
Copy link
Owner

This PR adds two new read-only flags to the TWI module that allow to sense the current bus state:

  • 27: TWI_CTRL_SENSE_SCL (read-only) - current state of the SCL bus line
  • 28: TWI_CTRL_SENSE_SDA (read-only) - current state of the SDA bus line

This feature can be used to check if the external wiring is fine (no short circuit, no missing pull-ups) or if there are any faulty devices (blocking the bus).

@stnolting stnolting added enhancement New feature or request HW Hardware-related labels Dec 1, 2024
@stnolting stnolting self-assigned this Dec 1, 2024
@stnolting stnolting marked this pull request as ready for review December 1, 2024 19:50
@stnolting stnolting merged commit 7992c9f into main Dec 1, 2024
10 checks passed
@stnolting stnolting deleted the twi_bus_sensing branch December 1, 2024 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request HW Hardware-related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant