Go to the documentation of this file.
67 #include "periph_cpu.h"
68 #include "periph_conf.h"
78 #define PWM_DEV(x) (x)
85 #define PWM_UNDEF (UINT_MAX)
98 #ifndef HAVE_PWM_MODE_T
106 #ifdef MODULE_ARDUINO
159 void pwm_set(
pwm_t dev, uint8_t channel, uint16_t value);
void pwm_poweroff(pwm_t dev)
Stop PWM generation on the given device.
pwm_mode_t
Default PWM mode definition.
@ PWM_LEFT
left aligned PWM
uint8_t pwm_channels(pwm_t dev)
Get the number of available channels.
@ PWM_RIGHT
right aligned PWM
void pwm_set(pwm_t dev, uint8_t channel, uint16_t value)
Set the duty-cycle for a given channel of the given PWM device.
void pwm_poweron(pwm_t dev)
Resume PWM generation on the given device.
uint32_t pwm_init(pwm_t dev, pwm_mode_t mode, uint32_t freq, uint16_t res)
Initialize a PWM device.
unsigned int pwm_t
Default PWM type definition.
@ PWM_CENTER
not supported