atsamd-rs / atsamd

Target atsamd microcontrollers using Rust
https://matrix.to/#/#atsamd-rs:matrix.org
Apache License 2.0
557 stars 199 forks source link

ATSAMD51 support #38

Closed tarcieri closed 5 years ago

tarcieri commented 5 years ago

Hello,

I've seen some mentions you're working on ATSAMD51 support:

I'm interested in working on a Rust project targeting ATSAMD51, and was curious what the present state of that looks like.

sajattack commented 5 years ago

The PR is here. It's enough to get some blinkenlightsen but there seems to be some issue with sercoms, and possibly peripheral clocks. Specifically, UART is getting stuck during setup, waiting for some state to be correct (syncbusy). I haven't tried the other protocols (I2C/SPI) but I assume they will have issues as well.

Feel free to join our gitter if you'd like to keep up to date with my progress (watch me struggle with the samd51).

I'm guessing with the NeoTrellis you're looking for neopixel stuff and the DAC. I don't believe we have an abstraction built around the DAC yet. If you'd like to help us in that area, that would be great.

tarcieri commented 5 years ago

Nice! I can at least attempt to see if I can reproduce blinkenlights on the NeoTrellis using your PR.

My project indeed critically hinges on the DAC. I'll attempt to familiarize myself with that stuff and get back to you with questions.

I don't believe we have an abstraction built around the DAC yet. If you'd like to help us in that area, that would be great.

Would this be worth opening a separate GitHub issue about at least?

sajattack commented 5 years ago

Would this be worth opening a separate GitHub issue about at least?

Sure thing.

tarcieri commented 5 years ago

Opened a separate issue about DAC support (#39) that includes links to the relevant AdaFruit code I found for their Teensy Audio port.