From 018b6a73d4e388884f0f75afe4125b97c68cd5ef Mon Sep 17 00:00:00 2001
From: Joakim Gebart <joakim.gebart@eistec.se>
Date: Sat, 16 May 2015 10:06:44 +0200
Subject: [PATCH] stm32f3: pwm_init: return actual frequency

---
 cpu/stm32f3/periph/pwm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpu/stm32f3/periph/pwm.c b/cpu/stm32f3/periph/pwm.c
index 091dd4d6eb..f38c988a21 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)
-- 
GitLab