projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add semaphore to benchmark test.
[bertos.git]
/
bertos
/
drv
/
pwm.h
diff --git
a/bertos/drv/pwm.h
b/bertos/drv/pwm.h
index b9fa728413aa157962d0b6f6eaf00a11c6468d45..88c1cb7128668209e40525e08a75943925c63504 100644
(file)
--- a/
bertos/drv/pwm.h
+++ b/
bertos/drv/pwm.h
@@
-29,7
+29,6
@@
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
* -->
*
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
* -->
*
- * \version $Id$
*
* \brief Pulse Width Modulation (PWM) driver.
*
*
* \brief Pulse Width Modulation (PWM) driver.
*
@@
-40,6
+39,7
@@
* $WIZ$ module_name = "pwm"
* $WIZ$ module_configuration = "bertos/cfg/cfg_pwm.h"
* $WIZ$ module_hw = "bertos/hw/pwm_map.h"
* $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
@@
-75,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_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);
void pwm_enable(PwmDev dev, bool state);
void pwm_init(void);
@@
-83,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 */