pwm_avr.c

Go to the documentation of this file.
00001 
00042 #include "pwm_avr.h"
00043 #include <hw/hw_cpufreq.h>
00044 
00045 #warning TODO:This is an exmple of implementation of PWM low level channel for AVR, implemnt it!
00046 
00050 void pwm_hw_setPolarity(PwmDev dev, bool pol)
00051 {
00052 
00053     /*
00054      * Put here a code to PWM polarity of select
00055      * PWM channel
00056      */
00057 
00058     //Only for test remove when implement this function
00059     (void)dev;
00060     (void)pol;
00061 }
00062 
00068 pwm_period_t pwm_hw_getPeriod(PwmDev dev)
00069 {
00070     /*
00071      * Put here a code to get period value of select
00072      * PWM channel
00073      */
00074 
00075     //Only for test remove when implement this function
00076     (void)dev;
00077 
00078     return 0;
00079 }
00080 
00086 void pwm_hw_setFrequency(PwmDev dev, uint32_t freq)
00087 {
00088     /*
00089      * Put here a code to set frequency of select
00090      * PWM channel
00091      */
00092 
00093     //Only for test remove when implement this function
00094     (void)dev;
00095     (void)freq;
00096 
00097 }
00098 
00104 void pwm_hw_setDutyUnlock(PwmDev dev, uint16_t duty)
00105 {
00106     /*
00107      * Put here a code to set duty of select
00108      * PWM channel
00109      */
00110 
00111     //Only for test remove when implement this function
00112     (void)dev;
00113     (void)duty;
00114 
00115 }
00116 
00117 
00121 void pwm_hw_enable(PwmDev dev)
00122 {
00123     /*
00124      * Put here a code to enable
00125      * a select PWM channel
00126      */
00127 
00128     //Only for test remove when implement this function
00129     (void)dev;
00130 }
00131 
00135 void pwm_hw_disable(PwmDev dev)
00136 {
00137     /*
00138      * Put here a code to disable
00139      * a select PWM channel
00140      */
00141 
00142     //Only for test remove when implement this function
00143     (void)dev;
00144 }
00145 
00146 
00150 void pwm_hw_init(void)
00151 {
00152     /*
00153      * Put here a code to init
00154      * a PWM hawdware
00155      */
00156 }
00157 
00158 
00159 
00160