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

ATSAMD51 DAC support #39

Open
tarcieri opened this issue Jan 22, 2019 · 6 comments
Open

ATSAMD51 DAC support #39

tarcieri opened this issue Jan 22, 2019 · 6 comments
Labels
enhancement New feature or request

Comments

@tarcieri
Copy link
Contributor

This is a tracking issue for supporting the ATSAMD51's DAC. I'm primarily interested in supporting the AdaFruit NeoTrellis M4 (see rust-embedded/wg#286). Wiring it into an ADC abstraction (#35) sounds cool, but for now I'd be happy just getting it working with the low-level API.

The main thing I have to go off of is AdaFruit's port of the Teensy audio engine to these platforms. Here are a few relevant commits:

Is DMA going to be an issue?

For what it's worth, I'd like to attempt to port this PureData synthesis engine to this platform:

https://github.com/mhroth/ZenGarden

I started a project to do that here:

https://github.com/neobirth/zengarden.rs

This project supports NEON acceleration, although I'm not sure if it's compatible with the subset of NEON (DSP instructions) supported by the ATSAMD51(G19A?). Otherwise it appears to be an easy-to-embed PureData engine that runs inside of an external event loop written in C++ that presents a C interface.

@sajattack
Copy link
Member

sajattack commented Jan 24, 2019

The low-level API portion (what we call a PAC or peripheral access crate) is auto-generated and will be part of my SAMD51 PR. The docs are already available here.

@sajattack sajattack added the enhancement New feature or request label Aug 14, 2020
@tgross35
Copy link
Contributor

Since there is now ADC support in the HAL https://docs.rs/atsamd-hal/latest/atsamd_hal/adc/index.html and the PAC https://docs.rs/atsamd51g/latest/atsamd51g/adc0/index.html, could this be closed?

@ianrrees
Copy link
Contributor

I think so!

@sajattack
Copy link
Member

ADC != DAC?

@sajattack sajattack reopened this Jan 11, 2024
@tgross35
Copy link
Contributor

Misread, thanks

@ianrrees
Copy link
Contributor

Whoops, thanks for the catch @sajattack!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants