BeRTOS
|
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. |
PWM driver (implementation)
Definition in file pwm.c.