X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Fpwm.h;h=87ec1b4d492efd06baf92c671dc8755bcb35f812;hb=6a0e38c0d5e0a7f8982fdd27d2a1385bfc18e55e;hp=db9b3a2cae7c2e6137e8a6f05056e33db8d1561c;hpb=6286e79f3da8091ec8da66469488a11035cada11;p=bertos.git diff --git a/bertos/drv/pwm.h b/bertos/drv/pwm.h index db9b3a2c..87ec1b4d 100644 --- a/bertos/drv/pwm.h +++ b/bertos/drv/pwm.h @@ -31,24 +31,32 @@ * * \version $Id$ * - * \brief PWM driver (interface) + * \brief Pulse Width Modulation (PWM) driver. * * \version $Id$ * \author Francesco Sacchi * \author Daniele Basile + * + * $WIZ$ module_name = "pwm" + * $WIZ$ module_configuration = "bertos/cfg/cfg_pwm.h" + * $WIZ$ module_hw = "bertos/hw/pwm_map.h" + * $WIZ$ module_supports = "not avr" */ #ifndef DRV_PWM_H #define DRV_PWM_H #include "hw/pwm_map.h" + +#include + #include CPU_HEADER(pwm) #include #define PWM_MAX_DUTY ((pwm_duty_t)0xFFFF) -#define PWM_MAX_PERIOD 0xFFFF -#define PWM_MAX_PERIOD_LOG2 16 +#define PWM_MAX_PERIOD 0xFFFF +#define PWM_MAX_PERIOD_LOG2 16 /** * PWM type define. @@ -76,8 +84,10 @@ void pwm_init(void); * * See pwm_test.c for implemntation of these functions. */ -int pwm_testRun(void); +void pwm_testRun(void); int pwm_testSetup(void); +/* For backward compatibility */ +#define pwm_testSetUp() pwm_testSetup() int pwm_testTearDown(void); #endif /* DRV_PWM_H */