summaryrefslogtreecommitdiff
path: root/openpcd/firmware/src/os
diff options
context:
space:
mode:
author(no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-09-10 14:14:17 +0000
committer(no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-09-10 14:14:17 +0000
commitd3294d3cf32e649815c89f6e5759e39601b3ec4f (patch)
treea4f8990d2ed31368c42f1ac5dbec989bcdf7fb87 /openpcd/firmware/src/os
parent1613ad130bf86814f2540d258b31d5523e9b8f24 (diff)
move PWM code to OS
git-svn-id: https://svn.openpcd.org:2342/trunk@170 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'openpcd/firmware/src/os')
-rw-r--r--openpcd/firmware/src/os/pwm.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/openpcd/firmware/src/os/pwm.h b/openpcd/firmware/src/os/pwm.h
new file mode 100644
index 0000000..8836c32
--- /dev/null
+++ b/openpcd/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