projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix the bug related to the empty version list
[bertos.git]
/
bertos
/
drv
/
pwm.h
diff --git
a/bertos/drv/pwm.h
b/bertos/drv/pwm.h
index 8bc2bba46464a3baabbd870b11fd2706f22d0024..87ec1b4d492efd06baf92c671dc8755bcb35f812 100644
(file)
--- a/
bertos/drv/pwm.h
+++ b/
bertos/drv/pwm.h
@@
-31,11
+31,16
@@
*
* \version $Id$
*
*
* \version $Id$
*
- * \brief P
WM driver (interface)
+ * \brief P
ulse Width Modulation (PWM) driver.
*
* \version $Id$
* \author Francesco Sacchi <batt@develer.com>
* \author Daniele Basile <asterix@develer.com>
*
* \version $Id$
* \author Francesco Sacchi <batt@develer.com>
* \author Daniele Basile <asterix@develer.com>
+ *
+ * $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"
*/
#ifndef DRV_PWM_H
*/
#ifndef DRV_PWM_H
@@
-50,8
+55,8
@@
#include <cfg/compiler.h>
#define PWM_MAX_DUTY ((pwm_duty_t)0xFFFF)
#include <cfg/compiler.h>
#define PWM_MAX_DUTY ((pwm_duty_t)0xFFFF)
-#define PWM_MAX_PERIOD 0xFFFF
-#define PWM_MAX_PERIOD_LOG2 16
+#define PWM_MAX_PERIOD
0xFFFF
+#define PWM_MAX_PERIOD_LOG2
16
/**
* PWM type define.
/**
* PWM type define.
@@
-79,8
+84,10
@@
void pwm_init(void);
*
* See pwm_test.c for implemntation of these functions.
*/
*
* 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 */
int pwm_testTearDown(void);
#endif /* DRV_PWM_H */