Browse Source

Corrected parameters of timer_set_mode() to u32.

pull/2/merge
Gareth McMullin 13 years ago
parent
commit
567faa9b61
  1. 4
      include/libopencm3/stm32/timer.h
  2. 4
      lib/stm32/f1/timer.c
  3. 4
      lib/stm32/f2/timer.c
  4. 4
      lib/stm32/f4/timer.c

4
include/libopencm3/stm32/timer.h

@ -857,8 +857,8 @@ void timer_enable_irq(u32 timer_peripheral, u32 irq);
void timer_disable_irq(u32 timer_peripheral, u32 irq); void timer_disable_irq(u32 timer_peripheral, u32 irq);
bool timer_get_flag(u32 timer_peripheral, u32 flag); bool timer_get_flag(u32 timer_peripheral, u32 flag);
void timer_clear_flag(u32 timer_peripheral, u32 flag); void timer_clear_flag(u32 timer_peripheral, u32 flag);
void timer_set_mode(u32 timer_peripheral, u8 clock_div, void timer_set_mode(u32 timer_peripheral, u32 clock_div,
u8 alignment, u8 direction); u32 alignment, u32 direction);
void timer_set_clock_division(u32 timer_peripheral, u32 clock_div); void timer_set_clock_division(u32 timer_peripheral, u32 clock_div);
void timer_enable_preload(u32 timer_peripheral); void timer_enable_preload(u32 timer_peripheral);
void timer_disable_preload(u32 timer_peripheral); void timer_disable_preload(u32 timer_peripheral);

4
lib/stm32/f1/timer.c

@ -118,8 +118,8 @@ void timer_clear_flag(u32 timer_peripheral, u32 flag)
TIM_SR(timer_peripheral) &= ~flag; TIM_SR(timer_peripheral) &= ~flag;
} }
void timer_set_mode(u32 timer_peripheral, u8 clock_div, void timer_set_mode(u32 timer_peripheral, u32 clock_div,
u8 alignment, u8 direction) u32 alignment, u32 direction)
{ {
u32 cr1; u32 cr1;

4
lib/stm32/f2/timer.c

@ -119,8 +119,8 @@ void timer_clear_flag(u32 timer_peripheral, u32 flag)
TIM_SR(timer_peripheral) &= ~flag; TIM_SR(timer_peripheral) &= ~flag;
} }
void timer_set_mode(u32 timer_peripheral, u8 clock_div, void timer_set_mode(u32 timer_peripheral, u32 clock_div,
u8 alignment, u8 direction) u32 alignment, u32 direction)
{ {
u32 cr1; u32 cr1;

4
lib/stm32/f4/timer.c

@ -119,8 +119,8 @@ void timer_clear_flag(u32 timer_peripheral, u32 flag)
TIM_SR(timer_peripheral) &= ~flag; TIM_SR(timer_peripheral) &= ~flag;
} }
void timer_set_mode(u32 timer_peripheral, u8 clock_div, void timer_set_mode(u32 timer_peripheral, u32 clock_div,
u8 alignment, u8 direction) u32 alignment, u32 direction)
{ {
u32 cr1; u32 cr1;

Loading…
Cancel
Save