#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
*
* PWM channel
*/
+ //Only for test remove when implement this function
+ (void)dev;
+
return 0;
}
* PWM channel
*/
-// TRACEMSG("PWM ch[%d] period[%d]", dev, period);
+ //Only for test remove when implement this function
+ (void)dev;
+ (void)freq;
+
}
/**
* 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;
+
}
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;
}
/**
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;
}
void pwm_hw_init(void)
{
/*
- * Put here a code to init
+ * Put here a code to init
* a PWM hawdware
*/
}
+
+
+