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

x/exp/io: introduce pin mappings #15773

Closed
rakyll opened this issue May 20, 2016 · 3 comments
Closed

x/exp/io: introduce pin mappings #15773

rakyll opened this issue May 20, 2016 · 3 comments

Comments

@rakyll
Copy link
Contributor

rakyll commented May 20, 2016

Due to the fact that every board has different mappings of the actual physical pins, we need to introduce a higher level layer numeric system to name the pins. Being able to have such a layer will make the user code portable across multiple boards. E.g. the GPIO package might use names like "IO25" to refer to the physical pin 22 on Raspberry Pi boards.

@rakyll rakyll added this to the Unreleased milestone May 20, 2016
@rakyll rakyll self-assigned this May 20, 2016
@rakyll
Copy link
Contributor Author

rakyll commented May 20, 2016

Chatting more about this issue with @proppy offline, we are thinking that the virtual pin space doesn't have to be of string names but we can keep using ints to defer to the GPIO numbers. Yet, we still need to have a mechanism to map the virtual pin space to the physical pins (at least for the /dev/mem implementation).

/cc @minux

@minux
Copy link
Member

minux commented May 21, 2016 via email

@rakyll
Copy link
Contributor Author

rakyll commented Jun 23, 2016

Closed via golang/exp@abad524.

@rakyll rakyll closed this as completed Jun 23, 2016
@golang golang locked and limited conversation to collaborators Jun 23, 2017
@rsc rsc unassigned rakyll Jun 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants