pwm.c File Reference
PWM driver (implementation) More...
#include "cfg/cfg_pwm.h"#include <cfg/macros.h>#include <cfg/module.h>#include <cfg/log.h>#include <cfg/debug.h>#include <drv/pwm.h>#include <PP_STRINGIZE(drv/PP_CAT3(pwm, _, CPU_ID).h)>#include <cpu/types.h>#include <cpu/irq.h>#include <string.h>Go to the source code of this file.
Functions | |
| void | pwm_setDuty (Pwm *ctx, pwm_duty_t duty) |
Set the duty cycle of the PWM channel linked to ctx. | |
| void | pwm_setFrequency (Pwm *ctx, pwm_freq_t freq) |
Set PWM frequency of channel linked to ctx. | |
| void | pwm_setPolarity (Pwm *ctx, PwmPolarity pol) |
Set PWM polarity of pwm channel linked to ctx. | |
| void | pwm_enable (Pwm *ctx, bool enable) |
Enable/Disable the pwm channel linked to ctx. | |
| void | pwm_init (Pwm *ctx, unsigned channel) |
| Initialize PWM driver. | |
Detailed Description
PWM driver (implementation)
Definition in file pwm.c.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/bertos_logo.png)