sam3x: Add missing return types to pwm functions.

This commit is contained in:
Gareth McMullin 2013-05-02 12:12:38 -07:00 committed by Piotr Esden-Tempski
parent c9cd2d9ab1
commit 8265953b35
1 changed files with 4 additions and 4 deletions

View File

@ -78,22 +78,22 @@
#define PWM_DT(x) MMIO32(PWM_BASE + 0x0218 + 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;
}
static inline pwm_set_duty(int ch, u32 duty)
static inline void pwm_set_duty(int ch, u32 duty)
{
PWM_CDTY(ch) = duty;
}
static inline pwm_enable(int ch)
static inline void pwm_enable(int ch)
{
PWM_ENA = 1 << ch;
}
static inline pwm_disable(int ch)
static inline void pwm_disable(int ch)
{
PWM_DIS = 1 << ch;
}