commit | 8eca9bb6fee53d3a95c4a955877086ddcd09ff37 | [log] [tgz] |
---|---|---|
author | Patrick Williams <patrick@stwcx.xyz> | Thu Jun 16 17:11:51 2022 -0500 |
committer | Patrick Williams <patrick@stwcx.xyz> | Thu Jun 16 17:11:54 2022 -0500 |
tree | c2a1237d2494c88be52d60b01d11c031793a116e | |
parent | 3bd1cfcb7d8293b1694aebb7f0e47fd53f7a5f60 [diff] |
switch experimental::fs to std::fs std::filesystem was added to C++17 and is well supported now. Remove the older std::experimental::filesystem usage. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ie960192eaefec8e0e0b4290929a2fa7bb7710c7a
Phosphor-buttons has a collection of IO event handler interfaces for physical inputs which are part of OCP front panel.
It defines an individual dbus interface object for each physical button/switch inputs such as power button, reset button etc. Each of this button interfaces monitors it's associated io for event changes and calls the respective event handlers.
In order to monitor a button/input interface the
respective gpio config details should be mentioned in the gpio defs json file - "/etc/default/obmc/gpio/gpio_defs.json"
{ "gpio_definitions": [ { "name": "POWER_BUTTON", "gpio_config" :[ { "pin": "D0", "direction": "both" } ] }, { "name": "RESET_BUTTON", "gpio_config" :[ { "pin": "AB0", "direction": "both" } ] }, { "name" : "HOST_SELECTOR",
"gpio_config" : [ { "pin": "AA4", "direction": "both" }, { "pin": "AA5", "direction": "both" }, { "pin": "AA6", "direction": "both" }, { "pin": "AA7", "direction": "both" } ] },
}