diff --git a/cpu/stm32f3/periph/pwm.c b/cpu/stm32f3/periph/pwm.c index 091dd4d6ebf878ce99de84c1a3dcc0c220d9972c..f38c988a2107b8efa4450c60594b478af17996c6 100644 --- a/cpu/stm32f3/periph/pwm.c +++ b/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)