Fix comments.
[bertos.git] / bertos / drv / pwm.h
index db9b3a2cae7c2e6137e8a6f05056e33db8d1561c..c7688f5829f876d4a5dfdb370ebaf9b00870e1b9 100644 (file)
  *
  * \version $Id$
  *
- * \brief PWM driver (interface)
+ * \brief Pulse Width Modulation (PWM) driver.
  *
  * \version $Id$
  * \author Francesco Sacchi <batt@develer.com>
  * \author Daniele Basile <asterix@develer.com>
+ *
+ * $WIZARD_MODULE = {
+ * "name" : "pwm",
+ * "depends" : [],
+ * "configuration" : "bertos/cfg/cfg_pwm.h"
+ * }
  */
 
 #ifndef DRV_PWM_H
 #define DRV_PWM_H
 
 #include "hw/pwm_map.h"
+
+#include <cpu/attr.h>
+
 #include CPU_HEADER(pwm)
 
 #include <cfg/compiler.h>
 
 #define PWM_MAX_DUTY              ((pwm_duty_t)0xFFFF)
-#define PWM_MAX_PERIOD            0xFFFF
-#define PWM_MAX_PERIOD_LOG2           16
+#define PWM_MAX_PERIOD                         0xFFFF
+#define PWM_MAX_PERIOD_LOG2                        16
 
 /**
  * PWM type define.
@@ -77,7 +86,7 @@ void pwm_init(void);
  * See pwm_test.c for implemntation of these functions.
  */
 int pwm_testRun(void);
-int pwm_testSetup(void);
+int pwm_testSetUp(void);
 int pwm_testTearDown(void);
 
 #endif /* DRV_PWM_H */