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

GPIO ports are a shared resource #2

Open
sailedeer opened this issue Feb 4, 2022 · 0 comments
Open

GPIO ports are a shared resource #2

sailedeer opened this issue Feb 4, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@sailedeer
Copy link
Contributor

Since GPIO ports and pins are a shared resource (i.e. there are a discrete number of pins, and two references to a pin shouldn't exist at the same time). Need to include a small lookup table in memory for the port and the pin. Of course, the user can write directly to the memory-mapped register but there isn't much we can do about that.

In general, when writing a new MSP430 library it will probably be good practice to implement a similar "lock" mechanism.

@sailedeer sailedeer added the enhancement New feature or request label Feb 4, 2022
@sailedeer sailedeer self-assigned this Feb 4, 2022
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

1 participant