X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Fphase.c;h=d6c0c73e7345ef7b6a8ec585cff1e9b5efbf2824;hb=29e7e26cf5643df1e8fac632a77ad435675ecafa;hp=b56aa61d3807121d3382395f8613201860a82ea6;hpb=f58b90fce4022247d31d68ba1c0d3a620a9071d8;p=bertos.git diff --git a/bertos/drv/phase.c b/bertos/drv/phase.c index b56aa61d..d6c0c73e 100644 --- a/bertos/drv/phase.c +++ b/bertos/drv/phase.c @@ -37,7 +37,7 @@ */ -#include "hw_phase.h" +#include "hw/hw_phase.h" #include #include @@ -50,8 +50,9 @@ #include -#warning FIXME:Generalize this moduele for all target supported. +#warning TODO:Generalize this moduele for all target supported. +#if 0 /** Array of triacs */ static Triac triacs[TRIAC_CNT]; @@ -102,7 +103,7 @@ DEFINE_ZEROCROSS_ISR() */ void phase_setDuty(TriacDev dev, triac_duty_t duty) { - cpuflags_t flags; + cpu_flags_t flags; IRQ_SAVE_DISABLE(flags); phase_setDutyUnlock(dev,duty); @@ -172,7 +173,7 @@ static void phase_softint(void *_dev) */ void phase_init(void) { - cpuflags_t flags; + cpu_flags_t flags; TriacDev dev; /* Init timers and ensure that all triac are off */ @@ -191,3 +192,5 @@ void phase_init(void) DB(phase_initialized = true;) IRQ_RESTORE(flags); } +#endif +