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>
diff --git a/gpio-util/Makefile.am b/gpio-util/Makefile.am
new file mode 100644
index 0000000..ea8c763
--- /dev/null
+++ b/gpio-util/Makefile.am
@@ -0,0 +1,8 @@
+AM_DEFAULT_SOURCE_EXT = .cpp
+AM_CPPFLAGS = -iquote ${top_srcdir}
+
+sbin_PROGRAMS = \
+ phosphor-gpio-util
+
+phosphor_gpio_util_SOURCES = \
+ main.cpp
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;
+}