summaryrefslogtreecommitdiff
path: root/chip/stm32/pwm.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/stm32/pwm.c')
-rw-r--r--chip/stm32/pwm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/chip/stm32/pwm.c b/chip/stm32/pwm.c
index 73db55334f..f9b1aeec10 100644
--- a/chip/stm32/pwm.c
+++ b/chip/stm32/pwm.c
@@ -135,6 +135,11 @@ void pwm_enable(enum pwm_channel ch, int enabled)
pwm_disable(ch);
}
+int pwm_get_enabled(enum pwm_channel ch)
+{
+ return using_pwm[ch];
+}
+
static void pwm_reconfigure(enum pwm_channel ch)
{
using_pwm[ch] = 0;