summaryrefslogtreecommitdiff
path: root/generic_gpio/generic_gpio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'generic_gpio/generic_gpio.cpp')
-rw-r--r--generic_gpio/generic_gpio.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/generic_gpio/generic_gpio.cpp b/generic_gpio/generic_gpio.cpp
new file mode 100644
index 0000000..3287578
--- /dev/null
+++ b/generic_gpio/generic_gpio.cpp
@@ -0,0 +1,25 @@
+#include <distrio_helper.h>
+#include <distrio_ioI.h>
+
+int main (int argc, char **argv)
+{
+ int ret = 0;
+ Distrio_Digital_i *digital;
+
+ if (init_corba (argc, argv))
+ return -EINVAL;
+
+ digital = new Distrio_Digital_i ();
+
+ if (register_digital ("pin huhu", digital)) {
+ ret = -EINVAL;
+ goto out;
+ }
+
+ if (run_orb ())
+ ret = -EINVAL;
+
+out:
+ free (digital);
+ return ret;
+}