projects
/
bertos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e81b42f
)
Add module declaration in PWM driver.
author
batt
<batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 26 Oct 2009 21:05:57 +0000
(21:05 +0000)
committer
batt
<batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 26 Oct 2009 21:05:57 +0000
(21:05 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3101
38d2e660
-2303-0410-9eaa-
f027e97ec537
bertos/drv/pwm.c
patch
|
blob
|
history
diff --git
a/bertos/drv/pwm.c
b/bertos/drv/pwm.c
index cb5a45fb0e7293b7f5c292ff2fad620dc9f09a3b..3062802032c0730d3f4ea22533fdcc7d12b0935d 100644
(file)
--- a/
bertos/drv/pwm.c
+++ b/
bertos/drv/pwm.c
@@
-41,6
+41,7
@@
#include "cfg/cfg_pwm.h"
#include <cfg/macros.h>
+#include <cfg/module.h>
// 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);
}