diff options
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 |
commit | d3294d3cf32e649815c89f6e5759e39601b3ec4f (patch) | |
tree | a4f8990d2ed31368c42f1ac5dbec989bcdf7fb87 /openpcd/firmware/src/os/pwm.h | |
parent | 1613ad130bf86814f2540d258b31d5523e9b8f24 (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/pwm.h')
-rw-r--r-- | openpcd/firmware/src/os/pwm.h | 11 |
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 |