Private
Public Access
2
0

maa: change the linking of maa and make gpio functions match maa_ spec

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2014-04-27 23:11:31 +01:00
parent a28d538321
commit ed0a1f6085
14 changed files with 79 additions and 57 deletions

View File

@@ -21,12 +21,14 @@
#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
*