Private
Public Access
2
0

pwm.hpp: Add C++ wrapper around Pwm

* maa_pwm_context becomes an opaque pointer
* C++ wrapper class Pwm
* swig now uses C++ wrapper Pwm 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:53:19 +01:00
parent 8a03e61f43
commit f0763844fa
6 changed files with 130 additions and 106 deletions

View File

@@ -30,7 +30,7 @@ int
main ()
{
maa_init();
maa_pwm_context* pwm;
maa_pwm_context pwm;
pwm = maa_pwm_init(3);
if (pwm == NULL) {
return 1;