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

Bring Analog API to life #24

Open
aethaniel opened this issue Sep 13, 2015 · 3 comments
Open

Bring Analog API to life #24

aethaniel opened this issue Sep 13, 2015 · 3 comments
Labels

Comments

@aethaniel
Copy link
Owner

No description provided.

@logos-electromechanical
Copy link
Contributor

I'm working on this for SAM4S now and I've noticed that it would be extremely convenient to have a couple of things...

  1. Define the peripheral used for PWM or Timer on that pin in the PinDescription somewhere other than the ulPinType member. This is because, at least for the Arachnio, I share some pins between PWM/Timer output and a different function. This will require at a bit of work for each variant. Thoughts?

  2. Copy over some utility functions from libsam to a common location. In particular, it would be nice to have PIO_SetPeripheral() and I suspect others as well. I was considering dragging it over as a local function for core_analog, but I realized that I'm going to want it other places as well. How do folks feel about adding a core_utils.{h|c} for this and similar functions?

@logos-electromechanical
Copy link
Contributor

Assuming no comments, I will test my implementation of this this weekend and then generate a pull request.

@aethaniel
Copy link
Owner Author

sorry to be late on this, your questions raise interest. I have to invest on this to answer you properly.

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

No branches or pull requests

2 participants