PWM service for XMEGA.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
#include <asf.h>
Functions | |
void | pwm_init (struct pwm_config *config, enum pwm_tc_t tc, enum pwm_channel_t channel, uint16_t freq_hz) |
Initialize PWM configuration struct and set correct I/O pin to output. More... | |
void | pwm_set_frequency (struct pwm_config *config, uint16_t freq_hz) |
Calculate TC settings from PWM frequency. More... | |
void | pwm_start (struct pwm_config *config, uint8_t duty_cycle_scale) |
Start a PWM channel. More... | |