#
38cd74c8 |
| 07-Nov-2024 |
Yang Chen <yang.chen@quantatw.com> |
Continue on missing GPIOs in the monitor/presence
In some cases, if a GPIO is not found, the function returns -1 to exit the process. To improve this, change the return value from -1 to continue so
Continue on missing GPIOs in the monitor/presence
In some cases, if a GPIO is not found, the function returns -1 to exit the process. To improve this, change the return value from -1 to continue so each object can be handled separately. This ensures the JSON file fully parses even if some GPIOs are missing.
Change-Id: I83763d56963e3d2ec9981a95a1a0da17d0882910 Signed-off-by: Yang Chen <yang.chen@quantatw.com>
show more ...
|
#
2a8848c6 |
| 01-Aug-2023 |
George Liu <liuxiwei@inspur.com> |
logging: switch to lg2
After switching to C++20, it is recommended to use `phosphor::lg2` to format log, and the correct `CODE_LINE` and `CODE_FUNC` values can be used in log tracking.
Signed-off-b
logging: switch to lg2
After switching to C++20, it is recommended to use `phosphor::lg2` to format log, and the correct `CODE_LINE` and `CODE_FUNC` values can be used in log tracking.
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I4fe8f4dec90e5062096168e05947b6d9bc355bb2
show more ...
|
#
39084b4a |
| 10-May-2023 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest .clang-format from the docs repository and reformat the repository.
Change-Id: I3942bdbbb0fc2d46d755a74f481bb44fa63dc486 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
a66ac0fc |
| 09-Jan-2023 |
Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com> |
Support event multi targets
Description: - Support event multi targets.
Design: - The origin multi-gpio-monitor doesn't detect the comming events are rising or falling and it can only start one s
Support event multi targets
Description: - Support event multi targets.
Design: - The origin multi-gpio-monitor doesn't detect the comming events are rising or falling and it can only start one service after events triggered.
- We need to do corresponding actions when gpio pin rising or falling. So we modify multi-gpio-monitor config json and read the rising actions and falling actions in it.
- When service monitored one gpio status is changed, service will detect that it is a rising or falling event and then call systemd startUnit to start services that set in config json.
- For example with config json below: When PowerGood is falling, "PowerGoodFalling.service" and "PowerOff.service" will start. [ { "Name": "PowerGood", "ChipId": "0", "GpioNum": 14, "EventMon": "BOTH", "Targets": { "FALLING": ["PowerGoodFalling.service", "PowerOff.service"], "RISING": ["PowerGoodRising.service", "PowerOn.service"] }, "Continue": true } ]
Test Case: Check that corresponding targets start or not - pass
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com> Change-Id: I043d4385b91a04d360a4d50048320db15e63ac74
show more ...
|
#
854404e0 |
| 28-Feb-2023 |
Ed Tanous <edtanous@google.com> |
Change io_service to io_context
This was renamed a while back in boost to be compliant with the std::executors proposal.
Change-Id: I221f120fc16d6b9e57eee17417cf7f5793c9629f Signed-off-by: Ed Tanou
Change io_service to io_context
This was renamed a while back in boost to be compliant with the std::executors proposal.
Change-Id: I221f120fc16d6b9e57eee17417cf7f5793c9629f Signed-off-by: Ed Tanous <edtanous@google.com>
show more ...
|
#
67554144 |
| 06-Oct-2021 |
Patrick Williams <patrick@stwcx.xyz> |
catch exceptions as const Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ib9f55b5a26f9a48838759cfaef73c44181242ac6
|
#
939a6431 |
| 09-Oct-2019 |
Vijay Khemka <vijaykhemka@fb.com> |
GPIO Monitor with multiple lines and libgpiod Added a new GPIO monitor (phosphor-multi-gpio-monitor) which monitors multiple gpio lines based on their line name or offset. GPIO details
GPIO Monitor with multiple lines and libgpiod Added a new GPIO monitor (phosphor-multi-gpio-monitor) which monitors multiple gpio lines based on their line name or offset. GPIO details need to be defined in a JSON file and needs to be passed to this daemon. This uses libgpiod for accessing gpio lines and also uses CLI11 for parsing input parameter. Signed-off-by: Vijay Khemka <vijaykhemka@fb.com> Change-Id: I843e6df8c1159888f2ca628d1f69c1d2294d29d6
show more ...
|