67#include "periph_cpu.h"
68#include "periph_conf.h"
85#define PWM_UNDEF (UINT_FAST8_MAX)
98#ifndef HAVE_PWM_MODE_T
@ PWM_CENTER
center aligned
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.
uint8_t pwm_channels(pwm_t dev)
Get the number of available channels.
pwm_mode_t
Default PWM mode definition.
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_poweroff(pwm_t dev)
Stop PWM generation on the given device.
uint_fast8_t pwm_t
Default PWM type definition.