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

bcm283x: revamp DMA support #44

Open
maruel opened this issue Sep 20, 2023 · 2 comments
Open

bcm283x: revamp DMA support #44

maruel opened this issue Sep 20, 2023 · 2 comments

Comments

@maruel
Copy link
Member

maruel commented Sep 20, 2023

Ported from google/periph#172.

This is about cleaning up the RPi DMA code for all generations.

Also see #34 for RPi4 specific issue.

@maruel
Copy link
Member Author

maruel commented Sep 20, 2023

Also including issue google/periph#198 about misuse of dmaWaitcyclesMax.

@kirwinrMK
Copy link

DMA appears completely broken on RPI.
line 916 in bcm283x fails due to a miss match in units:
l := int(int64(d) * int64(w.Frequency()) / int64(physic.Hertz)) // Bits should be `l := int(d / w.Frequency().Period()) // Bits'

Once that's fixed, there's still a SIGBUS error coming from Nanospin, that could be because I'm using a CM4 though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants