Atmel Software Framework

pwm.c File Reference

PWM service for XMEGA.

Copyright (c) 2014-2015 Atmel Corporation. All rights reserved.

#include <asf.h>


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...