Private
Public Access
2
0

pwm: move internal context structure to internal header

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
This commit is contained in:
Thomas Ingleby
2014-07-24 14:21:06 +01:00
parent 715863cd28
commit 595eec2737
2 changed files with 12 additions and 12 deletions

View File

@@ -57,3 +57,15 @@ struct _i2c {
int addr; /**< the address of the i2c slave */
/*@}*/
};
/**
* A structure representing a PWM pin
*/
struct _pwm {
/*@{*/
int pin; /**< the pin number, as known to the os. */
int chipid; /**< the chip id, which the pwm resides */
int duty_fp; /**< File pointer to duty file */
mraa_boolean_t owner; /**< Owner of pwm context*/
/*@}*/
};

View File

@@ -32,18 +32,6 @@
#define MAX_SIZE 64
#define SYSFS_PWM "/sys/class/pwm"
/**
* A structure representing a PWM pin
*/
struct _pwm {
/*@{*/
int pin; /**< the pin number, as known to the os. */
int chipid; /**< the chip id, which the pwm resides */
int duty_fp; /**< File pointer to duty file */
mraa_boolean_t owner; /**< Owner of pwm context*/
/*@}*/
};
static int
mraa_pwm_setup_duty_fp(mraa_pwm_context dev)
{