summaryrefslogtreecommitdiffstats
path: root/gpio-util
Commit message (Collapse)AuthorAgeFilesLines
* gpio: Fix missing cassertWilliam A. Kennington III2018-11-121-0/+1
| | | | | | | | This file is relying on assert() being transitively provided by sdbusplus. Fix the includes. Change-Id: Ia081478eb55a90bf5af541a4b16124dcfb224a13 Signed-off-by: William A. Kennington III <wak@google.com>
* Add clang-format to repoPatrick Venture2018-11-015-177/+161
| | | | | | | Add clang-format to repo. Change-Id: I3f8704d80dd0bdde0706ab189c68cffe6d347995 Signed-off-by: Patrick Venture <venture@google.com>
* Use s.c_str() in log messagesJoseph Reynolds2018-05-301-1/+1
| | | | | | | | | Partly Resolves openbmc/openbmc 2905 Tested: static_assert only Change-Id: I16db5b66bf5a26558a2ed0c1617ef5466dadefea Signed-off-by: Joseph Reynolds <jrey@us.ibm.com>
* Spelling fixesGunnar Mills2018-04-081-1/+1
| | | | | | | | | Spelling errors found using github.com/lucasdemarchi/codespell A tool to fix common misspellings. This tool is licensed under GNU General Public License, version 2. Change-Id: I726975922b185adefa65010ff60c391f143570ba Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Fill in gpio-util functionalityMatt Spinler2017-05-304-0/+340
| | | | | | | | | Process the command line arguments to know which GPIO to set and what to set it to. Then create the GPIO object and call the appropriate functions on it. Change-Id: Ib8da78e5ae92e5ae0716901aa71243226668be10 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Add GPIO classMatt Spinler2017-05-303-0/+213
| | | | | | | | | | | | | | | | This class is used for accessing a GPIO via the /dev/gpiochipX interface. It requests a GPIO line handle from the GPIO device to do the actual operation on. The GPIO number to use, for AST chips at least, is the actual GPIO number, such as GPIOA0 = 0 and GPIOA7 = 7. The class currently only supports writes. Change-Id: I1c2ae38c23c5db502d5f14bcf9aa2e35094f1e9b Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Create phosphor-gpio-util frameworkMatt Spinler2017-05-252-0/+28
This application can write GPIOs. Read support may be added in the future. Aside from just setting a GPIO low or high, it can also do: 0 -> <delay> -> 1 or 1 -> <delay> -> 0. All functionality will be added in future commits Change-Id: I2d3c761eb909ddce3952bfb3173ce271f03544ba Signed-off-by: Matt Spinler <spinler@us.ibm.com>
OpenPOWER on IntegriCloud