1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2026-01-01 01:41:18 +01:00

stm32f4: pwm_init: return actual frequency

This commit is contained in:
Joakim Gebart 2015-05-16 10:06:50 +02:00
parent 018b6a73d4
commit 43b9150460

View File

@ -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 */
pwm_start(dev);
return 0;
return frequency;
}
int pwm_set(pwm_t dev, int channel, unsigned int value)