projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add asrc, csrc, cxxsrc, cppasrc taken from the cpu definition in the makefile
[bertos.git]
/
bertos
/
cpu
/
arm
/
drv
/
pwm_at91.h
diff --git
a/bertos/cpu/arm/drv/pwm_at91.h
b/bertos/cpu/arm/drv/pwm_at91.h
index e86f523537b15f330d349f7f8d3b11246fb8c4d5..c8b0fd473d7494053e858ca46c66f5d9f061796f 100644
(file)
--- a/
bertos/cpu/arm/drv/pwm_at91.h
+++ b/
bertos/cpu/arm/drv/pwm_at91.h
@@
-63,6
+63,7
@@
typedef uint16_t pwm_period_t;
typedef struct PwmChannel
{
bool duty_zero; ///< True if duty cyle is zero, false otherwise.
typedef struct PwmChannel
{
bool duty_zero; ///< True if duty cyle is zero, false otherwise.
+ bool pol; ///< PWM polarty flag.
int pwm_pin; ///< PWM pin.
reg32_t *mode_reg; ///< PWM mode register.
reg32_t *duty_reg; ///< PWM duty cycle register.
int pwm_pin; ///< PWM pin.
reg32_t *mode_reg; ///< PWM mode register.
reg32_t *duty_reg; ///< PWM duty cycle register.
@@
-77,6
+78,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 */