summaryrefslogtreecommitdiffstats
path: root/gpio-util/main.cpp
diff options
context:
space:
mode:
authorMatt Spinler <spinler@us.ibm.com>2017-05-25 10:17:13 -0500
committerMatt Spinler <spinler@us.ibm.com>2017-05-25 11:18:49 -0500
commit936a504319e01642fc5803c00ff4aa5baeafacef (patch)
tree43bb5b97599d6bbd8f74b5a7ee4fee4d1eb94a19 /gpio-util/main.cpp
parent77ec47996d0c8b78d0f08d17fed8ff03107a1e03 (diff)
downloadphosphor-gpio-monitor-936a504319e01642fc5803c00ff4aa5baeafacef.tar.gz
phosphor-gpio-monitor-936a504319e01642fc5803c00ff4aa5baeafacef.zip
Create phosphor-gpio-util framework
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>
Diffstat (limited to 'gpio-util/main.cpp')
-rw-r--r--gpio-util/main.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/gpio-util/main.cpp b/gpio-util/main.cpp
new file mode 100644
index 0000000..b8801aa
--- /dev/null
+++ b/gpio-util/main.cpp
@@ -0,0 +1,20 @@
+/**
+ * Copyright © 2017 IBM Corporation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+int main(int argc, char** argv)
+{
+ return 0;
+}
OpenPOWER on IntegriCloud