projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Match the ///< comments only with the third regexp
[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 76c8b940067191bfed5986f24c94014fb5aeb0db..c8b0fd473d7494053e858ca46c66f5d9f061796f 100644
(file)
--- a/
bertos/cpu/arm/drv/pwm_at91.h
+++ b/
bertos/cpu/arm/drv/pwm_at91.h
@@
-41,7
+41,7
@@
#ifndef DRV_PWM_AT91_H
#define DRV_PWM_AT91_H
#ifndef DRV_PWM_AT91_H
#define DRV_PWM_AT91_H
-#include "pwm_map.h"
+#include "
hw/
pwm_map.h"
#include <cfg/compiler.h>
#include <cfg/macros.h>
#include <cfg/compiler.h>
#include <cfg/macros.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 */