Private
Public Access
2
0

gpio.hpp: Add C++ wrapper around Gpio

* maa_gpio_context bcomes an opaque pointer
* C++ wrapper class Gpio created
* swig now uses C++ wrapper Gpio to generate API

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2014-05-16 11:56:06 +01:00
parent f0763844fa
commit 058084cd88
9 changed files with 136 additions and 152 deletions

View File

@@ -34,7 +34,7 @@ main(int argc, char **argv)
fprintf(stdout, "MAA Version: %s\nStarting Read on IO6\n",
maa_get_version());
maa_gpio_context* gpio;
maa_gpio_context gpio;
gpio = maa_gpio_init(6);