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

Implement I2C for embedded-hal-async #24

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

marti157
Copy link
Contributor

@marti157 marti157 commented Jun 9, 2024

Allows using HAL with async device drivers.

@andelf
Copy link
Contributor

andelf commented Jun 9, 2024

Thanks. I'll add the missing transaction based on your PR.

@andelf
Copy link
Contributor

andelf commented Jun 9, 2024

It seems the current async I2C implementation is buggy. I'll review this when impl is fixed.

@marti157
Copy link
Contributor Author

marti157 commented Jun 9, 2024

Yes, I was having some issues with it as well. It seems that some I2C interrupts aren't triggering, thus keeping the respective polling tasks from awaking. On the other hand, the DMA interrupts work.

The transactions are successful if they are fast enough, where the polling exits immediately after checking the status register.

@romainreignier
Copy link
Contributor

I have tried the same this week-end with a SH1107 OLED display and the communication was not working but I did try to debug it yet.
Happy to see you guys working on it.

@andelf
Copy link
Contributor

andelf commented Jun 12, 2024

The DMA seems not starting. I'll compare the reg diffs vs the official EVT code.

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.

3 participants