X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Fphase.h;h=52bc067d5149c41e9060562e7388f8cc2301b23b;hb=ce5ddc07440aeb1357c7133beac6959b90d21885;hp=9a2341e4cc558f9221f5a4e95e0a8487324c69bf;hpb=3fb609d60480eefd5e43d48d13cb9f387c38cb0f;p=bertos.git diff --git a/bertos/drv/phase.h b/bertos/drv/phase.h index 9a2341e4..52bc067d 100644 --- a/bertos/drv/phase.h +++ b/bertos/drv/phase.h @@ -31,23 +31,27 @@ * * \version $Id$ * - * \brief Phase control driver (interface) + * \brief Phase partialization driver with TRIACs. * * \version $Id$ * \author Francesco Sacchi + * + * $WIZ$ module_name = "phase" + * $WIZ$ module_depends = "timer" + * $WIZ$ module_configuration = "bertos/cfg/cfg_phase.h" + * $WIZ$ module_hw = "bertos/hw/hw_phase.h", "bertos/hw/phase_map.h", "bertos/hw/hw_phase.c" */ #ifndef DRV_PHASE_H #define DRV_PHASE_H #include "hw/phase_map.h" -#include + +#include "cfg/cfg_phase.h" #include -#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.