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 support for TWI (I2C) module #26

Open
haata opened this issue Apr 7, 2021 · 0 comments
Open

Add support for TWI (I2C) module #26

haata opened this issue Apr 7, 2021 · 0 comments

Comments

@haata
Copy link
Collaborator

haata commented Apr 7, 2021

At minimum we should implement I2C master (atsamd doesn't have an I2C slave implementation afaict).
https://github.com/atsamd-rs/atsamd/blob/master/hal/src/common/thumbv7em/sercom/v1/i2c.rs
https://docs.rs/embedded-hal/0.2.4/embedded_hal/blocking/i2c/index.html

Both atsam4s and atsam4e have two TWI modules.

Ideally with optional support for PDC, but this can get complicated as it's actually less efficient to use PDC for I2C when the transfer sizes are small. So it's probably best to ignore this for now.

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

No branches or pull requests

1 participant