Browse Source

stm32f3: pwm_init: return actual frequency

dev/timer
Joakim Gebart 8 years ago
parent
commit
018b6a73d4
  1. 2
      cpu/stm32f3/periph/pwm.c

2
cpu/stm32f3/periph/pwm.c

@ -125,7 +125,7 @@ int pwm_init(pwm_t dev, pwm_mode_t mode, unsigned int frequency, unsigned int re
/* enable PWM generation */
pwm_start(dev);
return 0;
return frequency;
}
int pwm_set(pwm_t dev, int channel, unsigned int value)

Loading…
Cancel
Save