mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-30 10:38:55 +00:00
49b4b8597d
This patch equips the pin-driver framework with support for the time-multiplexed operation of a pin as output or input. This is needed when implementing I2C communication via a bit-banging driver. To operate pin in both directions, a driver obtains both a pin-state and a pin-control session for the same pin. The pin-state session can be used to sense the current pin state. The control session allows the client to set the pin to high or low (using the 'state' method), or to set it to high-impedance via the 'yield' method. Once switched to high-impedance, the pin can be used as input. Issue genodelabs/genode-allwinner#10 |
||
---|---|---|
.. | ||
component.h | ||
connection.h | ||
pin_control_session.h |