From 2dee7965cd538d8d440524465ef4ad18111b2eda Mon Sep 17 00:00:00 2001 From: asterix Date: Tue, 27 Apr 2010 09:33:33 +0000 Subject: [PATCH] Clean up. Add set polarity prototype. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3527 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/drv/pwm.c | 3 +-- bertos/drv/pwm.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bertos/drv/pwm.c b/bertos/drv/pwm.c index 30628020..d09d9627 100644 --- a/bertos/drv/pwm.c +++ b/bertos/drv/pwm.c @@ -32,7 +32,6 @@ * * \brief PWM driver (implementation) * - * \version $Id$ * * \author Francesco Sacchi * \author Daniele Basile @@ -72,7 +71,7 @@ void pwm_setDuty(PwmDev dev, pwm_duty_t duty) real_duty = (uint64_t)(duty * period) >> (uint64_t)PWM_MAX_PERIOD_LOG2; - LOG_INFO("real_duty[%d] duty[%d], period[%d]", real_duty, duty, period); + LOG_INFO("real_duty[%d] duty[%d], period[%d]\n", real_duty, duty, period); pwm_hw_setDutyUnlock(dev, real_duty); } diff --git a/bertos/drv/pwm.h b/bertos/drv/pwm.h index 87ec1b4d..88c1cb71 100644 --- a/bertos/drv/pwm.h +++ b/bertos/drv/pwm.h @@ -29,7 +29,6 @@ * Copyright 2005 Develer S.r.l. (http://www.develer.com/) * --> * - * \version $Id$ * * \brief Pulse Width Modulation (PWM) driver. * @@ -76,6 +75,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); -- 2.25.1