summaryrefslogtreecommitdiff
path: root/firmware/src/os/pwm.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/src/os/pwm.h')
-rw-r--r--firmware/src/os/pwm.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/firmware/src/os/pwm.h b/firmware/src/os/pwm.h
new file mode 100644
index 0000000..8836c32
--- /dev/null
+++ b/firmware/src/os/pwm.h
@@ -0,0 +1,11 @@
+#ifndef _PWM_H
+#define _PWM_H
+
+extern void pwm_freq_set(int channel, u_int32_t freq);
+extern void pwm_start(int channel);
+extern void pwm_stop(int channel);
+extern void pwm_duty_set_percent(int channel, u_int16_t duty);
+extern void pwm_init(void);
+extern void pwm_fini(void);
+
+#endif
personal git repositories of Harald Welte. Your mileage may vary