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

[Snap] Give add-ons access to GPIO #3163

Open
benfrancis opened this issue Aug 22, 2024 · 1 comment
Open

[Snap] Give add-ons access to GPIO #3163

benfrancis opened this issue Aug 22, 2024 · 1 comment
Labels
snap Issues relating to the snap package task

Comments

@benfrancis
Copy link
Member

Some add-ons (e.g. the GPIO add-on) require access to GPIO ports.

Thus may require the gpio and/or gpio-control interfaces. I understand these interfaces are not usually connected by default.

@benfrancis benfrancis added snap Issues relating to the snap package task labels Aug 22, 2024
@dilyn-corner
Copy link
Contributor

One important thing to recognize about the GPIO interfaces is that they require a connection to the slot provider, and the system (snapd, core) are not the slot providers; the gadget snap is.

This means that the gadget snap needs to define the GPIO interfaces for your snap to connect to, see here for an example. This is true of most hardware interfaces (serial, pwm, i2c, etc).

And you are correct in saying these interfaces do not autoconnect by default. Generally, hardware interfaces are also super-privileged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
snap Issues relating to the snap package task
Projects
Status: Product Backlog
Development

No branches or pull requests

2 participants