Update to new kernel config; use cpu_relax().
[bertos.git] / bertos / drv / phase.h
index 199832b3bd9650cfdc4ad0c8e0fb29e90b85139b..465477a3551877c6f30a900296fe73da5a5292d4 100644 (file)
  * \version $Id$
  * \author Francesco Sacchi <batt@develer.com>
  *
- * $WIZARD_MODULE = {
- * "name" : "phase",
- * "depends" : ["timer"],
- * "configuration" : "bertos/cfg/cfg_phase.h"
+ * $WIZ$ module_name = "phase"
+ * $WIZ$ module_depends = "timer"
+ * $WIZ$ module_configuration = "bertos/cfg/cfg_phase.h"
  * }
  */
 
@@ -52,7 +51,7 @@
 
 #include <drv/timer.h>
 
-#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.