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

Use embedded-dma trait in PWM module #231

Merged
merged 15 commits into from
Nov 3, 2020
Merged

Conversation

kalkyl
Copy link
Contributor

@kalkyl kalkyl commented Sep 22, 2020

  • Updated the PWM module to use embedded-dma trait for sequences.
  • Added support for 52810 & 52811
  • Added Interrupt const to Instance
  • Changed internal duty buffers to be static Cell
  • New proposed API for dealing with sequences, a PwmSeq that wraps the Pwm<T> together with the loaded sequence buffer(s). The wrapped contents can be accessed by calling split() on it.
    See updated demo: https://github.com/kalkyl/nrf-hal/blob/pwm-dma/examples/pwm-demo/src/main.rs

@jonas-schievink jonas-schievink merged commit b9a8233 into nrf-rs:master Nov 3, 2020
@kalkyl kalkyl deleted the pwm-dma branch November 3, 2020 17:23
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.

2 participants