From dc6a4666ebeba9a0b485d130d031b2fa822160ad Mon Sep 17 00:00:00 2001 From: batt Date: Mon, 26 Oct 2009 21:05:57 +0000 Subject: [PATCH] Add module declaration in PWM driver. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3101 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/drv/pwm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bertos/drv/pwm.c b/bertos/drv/pwm.c index cb5a45fb..30628020 100644 --- a/bertos/drv/pwm.c +++ b/bertos/drv/pwm.c @@ -41,6 +41,7 @@ #include "cfg/cfg_pwm.h" #include +#include // Define logging setting (for cfg/log.h module). #define LOG_LEVEL PWM_LOG_LEVEL @@ -94,6 +95,8 @@ void pwm_enable(PwmDev dev, bool state) pwm_hw_disable(dev); } +MOD_DEFINE(pwm); + /** * Initialize PWM hw. */ @@ -111,6 +114,7 @@ void pwm_init(void) pwm_setDuty(dev, 0); IRQ_RESTORE(flags); + MOD_INIT(pwm); } -- 2.34.1