maa: change the linking of maa and make gpio functions match maa_ spec
[contrib/mraa.git] / api / pwm.h
index e3fe6a8..aed83b5 100644 (file)
--- a/api/pwm.h
+++ b/api/pwm.h
 #include <stdio.h>
 #include <fcntl.h>
 
+#include "maa.h"
+
 typedef struct {
     int chipid, pin;
     FILE *duty_fp;
 } pwm_t;
 
-int maa_pwm_init(pwm_t* pwm, int chipin, int pin);
+maa_result_t maa_pwm_init(pwm_t* pwm, int chipin, int pin);
 
 /** Set the ouput duty-cycle percentage, as a float
  *