mirror of
https://github.com/genodelabs/genode.git
synced 2025-05-31 22:50:54 +00:00
Gpio::Connection accept a session label
This allows a component to access GPIOs from different banks of an SOC. Issue genodelabs#5273
This commit is contained in:
parent
09c40688e1
commit
96ef527436
@ -24,9 +24,9 @@ namespace Gpio { struct Connection; }
|
|||||||
|
|
||||||
struct Gpio::Connection : Genode::Connection<Session>, Session_client
|
struct Gpio::Connection : Genode::Connection<Session>, Session_client
|
||||||
{
|
{
|
||||||
Connection(Genode::Env &env, unsigned long gpio_pin)
|
Connection(Genode::Env &env, unsigned long gpio_pin, Label label = "")
|
||||||
:
|
:
|
||||||
Genode::Connection<Session>(env, Label(), Ram_quota { 8*1024 },
|
Genode::Connection<Session>(env, label, Ram_quota { 8*1024 },
|
||||||
Args("gpio=", gpio_pin)),
|
Args("gpio=", gpio_pin)),
|
||||||
Session_client(cap())
|
Session_client(cap())
|
||||||
{ }
|
{ }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user