#define CFG_PHASE_H
/// Max value of the duty cycle on triac. $WIZARD = { "type" : "int" }
-#define TRIAC_MAX_DUTY 100
+#define CONFIG_TRIAC_MAX_DUTY 100
/// Max value of the triac power. $WIZARD = { "type" : "int" }
-#define TRIAC_MAX_POWER 100
+#define CONFIG_TRIAC_MAX_POWER 100
#endif /* CFG_PHASE_H */
#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.