From 595eec2737f2a6ba50c3dab3353df79869aae25a Mon Sep 17 00:00:00 2001 From: Thomas Ingleby Date: Thu, 24 Jul 2014 14:21:06 +0100 Subject: [PATCH] pwm: move internal context structure to internal header Signed-off-by: Thomas Ingleby --- include/mraa_internal_types.h | 12 ++++++++++++ src/pwm/pwm.c | 12 ------------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/include/mraa_internal_types.h b/include/mraa_internal_types.h index ed3849d..39e3903 100644 --- a/include/mraa_internal_types.h +++ b/include/mraa_internal_types.h @@ -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*/ + /*@}*/ +}; diff --git a/src/pwm/pwm.c b/src/pwm/pwm.c index a0ffb4b..64db405 100644 --- a/src/pwm/pwm.c +++ b/src/pwm/pwm.c @@ -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) {