X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=bertos%2Fdrv%2Fpwm.h;h=60ae6e922e4bfee52c7d7e6304f0acb9c39262b6;hb=edfd941531726c508a978af9df645709fa539ed9;hp=37186174de1035d5bec1fe5c68effd73bb89767a;hpb=d7cb700c2fbacab753926804f3d5644d26fcc943;p=bertos.git diff --git a/bertos/drv/pwm.h b/bertos/drv/pwm.h index 37186174..60ae6e92 100644 --- a/bertos/drv/pwm.h +++ b/bertos/drv/pwm.h @@ -29,19 +29,16 @@ * Copyright 2005 Develer S.r.l. (http://www.develer.com/) * --> * - * \version $Id$ * - * \brief PWM driver (interface) + * \brief Pulse Width Modulation (PWM) driver. * - * \version $Id$ * \author Francesco Sacchi * \author Daniele Basile * - * $WIZARD_MODULE = { - * "name" : "pwm", - * "depends" : [], - * "configuration" : "bertos/cfg/cfg_pwm.h" - * } + * $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 and not cm3" */ #ifndef DRV_PWM_H @@ -77,6 +74,7 @@ INLINE void pwm_setPolarity(PwmDev dev, bool pol) void pwm_setDuty(PwmDev dev, pwm_duty_t duty); void pwm_setFrequency(PwmDev dev, pwm_freq_t freq); +void pwm_setPolarity(PwmDev dev, bool pol); void pwm_enable(PwmDev dev, bool state); void pwm_init(void); @@ -85,8 +83,10 @@ void pwm_init(void); * * See pwm_test.c for implemntation of these functions. */ -int pwm_testRun(void); -int pwm_testSetUp(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 */