projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Correct exception for toolchains that don't have the right attributes
[bertos.git]
/
bertos
/
drv
/
phase.h
diff --git
a/bertos/drv/phase.h
b/bertos/drv/phase.h
index 9a2341e4cc558f9221f5a4e95e0a8487324c69bf..465477a3551877c6f30a900296fe73da5a5292d4 100644
(file)
--- a/
bertos/drv/phase.h
+++ b/
bertos/drv/phase.h
@@
-31,23
+31,27
@@
*
* \version $Id$
*
*
* \version $Id$
*
- * \brief Phase control driver
(interface)
+ * \brief Phase control driver
, to manage triac swicth.
*
* \version $Id$
* \author Francesco Sacchi <batt@develer.com>
*
* \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"
*/
#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>
#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.
/**
* \name Types for duty and power.