gadget snap should allow a gpio's direction to be set
Bug #1693007 reported by
Tony Espy
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
The gadget snap should allow the direction of a gpio to be initialized in the gadget snap. Currently, when a gpio slot is connected, a systemd unit is created which exports the gpio, which could easily be extended to also set the direction.
For instance, here's an existing gadget snap gpio definition:
slots:
cloud-led:
interface: gpio
number: 346
This instead would become:
slots:
cloud-led:
interface: gpio
number: 346
direction: out
This would control the value of the following sysfs node:
/sys/class/
This is being reported on an Ubuntu Core 16 system running snapd 2.25 from core snap 16-2 (r1804).
Changed in snapd: | |
status: | New → Confirmed |
tags: | added: se |
tags: |
added: ce removed: se |
Changed in snapd: | |
status: | Confirmed → Triaged |
importance: | Undecided → Wishlist |
To post a comment you must log in.