From: (no author) <(no author)@38d2e660-2303-0410-9eaa-f027e97ec537> Date: Thu, 20 Aug 2009 14:08:23 +0000 (+0000) Subject: Use log for debug message. X-Git-Tag: 2.2.0~196 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=2c96ada2950f2a4bd160cb405fa8332f97d70911;p=bertos.git Use log for debug message. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2772 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/drv/pwm.c b/bertos/drv/pwm.c index 11c4e04b..cb5a45fb 100644 --- a/bertos/drv/pwm.c +++ b/bertos/drv/pwm.c @@ -38,7 +38,15 @@ * \author Daniele Basile */ +#include "cfg/cfg_pwm.h" + #include + +// Define logging setting (for cfg/log.h module). +#define LOG_LEVEL PWM_LOG_LEVEL +#define LOG_VERBOSITY PWM_LOG_FORMAT + +#include #include #include @@ -63,7 +71,7 @@ void pwm_setDuty(PwmDev dev, pwm_duty_t duty) real_duty = (uint64_t)(duty * period) >> (uint64_t)PWM_MAX_PERIOD_LOG2; -// TRACEMSG("real_duty[%d] duty[%d], period[%d]", real_duty, duty, period); + LOG_INFO("real_duty[%d] duty[%d], period[%d]", real_duty, duty, period); pwm_hw_setDutyUnlock(dev, real_duty); }