Remove \version svn tag.
[bertos.git] / bertos / cpu / avr / drv / pwm_avr.c
index 93dd51371dcd32b5fe06ab2c2d6916649ce288d4..bea3ef5f2ae83a7be4cf2fc3f51d6a38e32651e1 100644 (file)
@@ -32,7 +32,6 @@
  *
  * \brief Low-level PWM module for AVR (inplementation).
  *
- * \version $Id$
  *
  * \author Daniele Basile <asterix@develer.com>
  *
 
 
 #include "pwm_avr.h"
-#include "hw_cpu.h"
+#include <hw/hw_cpufreq.h>
 
 #warning TODO:This is an exmple of implementation of PWM low level channel for AVR, implemnt it!
 
+/**
+ * Set PWM polarity to select pwm channel
+ */
+void pwm_hw_setPolarity(PwmDev dev, bool pol)
+{
+
+       /*
+        * Put here a code to PWM polarity of select
+        * PWM channel
+        */
+
+       //Only for test remove when implement this function
+       (void)dev;
+       (void)pol;
+}
+
 /**
  * Get preiod from select channel
  *
@@ -56,6 +71,9 @@ pwm_period_t pwm_hw_getPeriod(PwmDev dev)
         * PWM channel
         */
 
+       //Only for test remove when implement this function
+       (void)dev;
+
        return 0;
 }
 
@@ -71,7 +89,10 @@ void pwm_hw_setFrequency(PwmDev dev, uint32_t freq)
         * PWM channel
         */
 
-//     TRACEMSG("PWM ch[%d] period[%d]", dev, period);
+       //Only for test remove when implement this function
+       (void)dev;
+       (void)freq;
+
 }
 
 /**
@@ -86,7 +107,10 @@ void pwm_hw_setDutyUnlock(PwmDev dev, uint16_t duty)
         * PWM channel
         */
 
-//     TRACEMSG("PWM ch[%d] duty[%d], period[%ld]", dev, duty, *pwm_map[dev].period_reg);
+       //Only for test remove when implement this function
+       (void)dev;
+       (void)duty;
+
 }
 
 
@@ -96,9 +120,12 @@ void pwm_hw_setDutyUnlock(PwmDev dev, uint16_t duty)
 void pwm_hw_enable(PwmDev dev)
 {
        /*
-        * Put here a code to enable 
+        * Put here a code to enable
         * a select PWM channel
         */
+
+       //Only for test remove when implement this function
+       (void)dev;
 }
 
 /**
@@ -107,9 +134,12 @@ void pwm_hw_enable(PwmDev dev)
 void pwm_hw_disable(PwmDev dev)
 {
        /*
-        * Put here a code to disable 
+        * Put here a code to disable
         * a select PWM channel
         */
+
+       //Only for test remove when implement this function
+       (void)dev;
 }
 
 
@@ -119,8 +149,11 @@ void pwm_hw_disable(PwmDev dev)
 void pwm_hw_init(void)
 {
        /*
-        * Put here a code to init 
+        * Put here a code to init
         * a PWM hawdware
         */
 }
 
+
+
+