sam3x: Add missing return types to pwm functions.
This commit is contained in:
parent
c9cd2d9ab1
commit
8265953b35
@ -78,22 +78,22 @@
|
|||||||
#define PWM_DT(x) MMIO32(PWM_BASE + 0x0218 + 0x20*(x))
|
#define PWM_DT(x) MMIO32(PWM_BASE + 0x0218 + 0x20*(x))
|
||||||
#define PWM_DTUPD(x) MMIO32(PWM_BASE + 0x021C + 0x20*(x))
|
#define PWM_DTUPD(x) MMIO32(PWM_BASE + 0x021C + 0x20*(x))
|
||||||
|
|
||||||
static inline pwm_set_period(int ch, u32 period)
|
static inline void pwm_set_period(int ch, u32 period)
|
||||||
{
|
{
|
||||||
PWM_CPRD(ch) = period;
|
PWM_CPRD(ch) = period;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline pwm_set_duty(int ch, u32 duty)
|
static inline void pwm_set_duty(int ch, u32 duty)
|
||||||
{
|
{
|
||||||
PWM_CDTY(ch) = duty;
|
PWM_CDTY(ch) = duty;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline pwm_enable(int ch)
|
static inline void pwm_enable(int ch)
|
||||||
{
|
{
|
||||||
PWM_ENA = 1 << ch;
|
PWM_ENA = 1 << ch;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline pwm_disable(int ch)
|
static inline void pwm_disable(int ch)
|
||||||
{
|
{
|
||||||
PWM_DIS = 1 << ch;
|
PWM_DIS = 1 << ch;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user