projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add another write test.
[bertos.git]
/
bertos
/
cpu
/
avr
/
drv
/
pwm_avr.h
diff --git
a/bertos/cpu/avr/drv/pwm_avr.h
b/bertos/cpu/avr/drv/pwm_avr.h
index 0283269e6271c8c0aaef298e0352f554ecaa40fe..e3a6fa7f79c8e1296e83784dd6c20ec5fdfb970b 100644
(file)
--- a/
bertos/cpu/avr/drv/pwm_avr.h
+++ b/
bertos/cpu/avr/drv/pwm_avr.h
@@
-41,9
+41,7
@@
#ifndef DRV_PWM_AVR_H
#define DRV_PWM_AVR_H
#ifndef DRV_PWM_AVR_H
#define DRV_PWM_AVR_H
-#include "pwm_map.h"
-
-#include "appconfig.h"
+#include "hw/pwm_map.h"
#include <cpu/types.h>
#include <cpu/types.h>
@@
-69,6
+67,7
@@
void pwm_hw_setFrequency(PwmDev dev, uint32_t freq);
void pwm_hw_setDutyUnlock(PwmDev dev, uint16_t duty);
void pwm_hw_disable(PwmDev dev);
void pwm_hw_enable(PwmDev dev);
void pwm_hw_setDutyUnlock(PwmDev dev, uint16_t duty);
void pwm_hw_disable(PwmDev dev);
void pwm_hw_enable(PwmDev dev);
+void pwm_hw_setPolarity(PwmDev dev, bool pol);
pwm_period_t pwm_hw_getPeriod(PwmDev dev);
#endif /* DRV_ADC_AT91_H */
pwm_period_t pwm_hw_getPeriod(PwmDev dev);
#endif /* DRV_ADC_AT91_H */