diff options
author | (no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2006-08-03 10:00:21 +0000 |
---|---|---|
committer | (no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2006-08-03 10:00:21 +0000 |
commit | ada3d4fa86e6f178c8281f1cf7a5c55f8961accb (patch) | |
tree | def3f0c4749c4018b436ec66601cb11ff620ab08 /openpcd/firmware/src/pwm.h | |
parent | 1bc8544204ae4a75ed8b4c76cee9fa3bd9d505d6 (diff) |
add code for PWM controller
git-svn-id: https://svn.openpcd.org:2342/trunk@71 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'openpcd/firmware/src/pwm.h')
-rw-r--r-- | openpcd/firmware/src/pwm.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/openpcd/firmware/src/pwm.h b/openpcd/firmware/src/pwm.h new file mode 100644 index 0000000..c41d74a --- /dev/null +++ b/openpcd/firmware/src/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(int channel, u_int16_t duty); +extern void pwm_init(void); +extern void pwm_fini(void); + +#endif |