Skip to content
Snippets Groups Projects
Commit 43b91504 authored by Joakim Nohlgård's avatar Joakim Nohlgård
Browse files

stm32f4: pwm_init: return actual frequency

parent 018b6a73
No related branches found
No related tags found
No related merge requests found
...@@ -157,7 +157,7 @@ int pwm_init(pwm_t dev, pwm_mode_t mode, unsigned int frequency, unsigned int re ...@@ -157,7 +157,7 @@ int pwm_init(pwm_t dev, pwm_mode_t mode, unsigned int frequency, unsigned int re
/* enable timer ergo the PWM generation */ /* enable timer ergo the PWM generation */
pwm_start(dev); pwm_start(dev);
return 0; return frequency;
} }
int pwm_set(pwm_t dev, int channel, unsigned int value) int pwm_set(pwm_t dev, int channel, unsigned int value)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment