Change the comment style for the modules and the list, and use the newParser to parse...
[bertos.git] / bertos / drv / phase.h
index 9a2341e4cc558f9221f5a4e95e0a8487324c69bf..465477a3551877c6f30a900296fe73da5a5292d4 100644 (file)
  *
  * \version $Id$
  *
- * \brief Phase control driver (interface)
+ * \brief Phase control driver, to manage triac swicth.
  *
  * \version $Id$
  * \author Francesco Sacchi <batt@develer.com>
+ *
+ * $WIZ$ module_name = "phase"
+ * $WIZ$ module_depends = "timer"
+ * $WIZ$ module_configuration = "bertos/cfg/cfg_phase.h"
+ * }
  */
 
 #ifndef DRV_PHASE_H
 #define DRV_PHASE_H
 
 #include "hw/phase_map.h"
-#include <cfg/debug.h>
+
+#include "cfg/cfg_phase.h"
 
 #include <drv/timer.h>
 
-#define TRIAC_MAX_DUTY  100
-#define TRIAC_MAX_POWER 100
-#define TRIAC_POWER_K   TRIAC_MAX_DUTY * (1 / sqrt(2 * TRIAC_MAX_POWER))
+#define TRIAC_POWER_K   CONFIG_TRIAC_MAX_DUTY * (1 / sqrt(2 * CONFIG_TRIAC_MAX_POWER))
 
 /**
  * \name Types for duty and power.