Make nightly build test works.
[bertos.git] / bertos / drv / phase.c
index b56aa61d3807121d3382395f8613201860a82ea6..3a400a369c1a023c1e39449ad34a62ed38bd8852 100644 (file)
@@ -37,7 +37,7 @@
  */
 
 
-#include "hw_phase.h"
+#include "hw/hw_phase.h"
 
 #include <cfg/macros.h>
 #include <cfg/compiler.h>
@@ -50,8 +50,6 @@
 
 #include <math.h>
 
-#warning FIXME:Generalize this moduele for all target supported.
-
 /** Array  of triacs */
 static Triac triacs[TRIAC_CNT];
 
@@ -102,7 +100,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 +170,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 */
@@ -182,7 +180,7 @@ void phase_init(void)
                triacs[dev].running = false;
                SET_TRIAC_DDR(dev);
                TRIAC_OFF(dev);
-               timer_set_event_softint(&triacs[dev].timer, (Hook)phase_softint, (void *)dev);
+               timer_setSoftint(&triacs[dev].timer, (Hook)phase_softint, (void *)dev);
        }
        IRQ_SAVE_DISABLE(flags);
 
@@ -191,3 +189,4 @@ void phase_init(void)
        DB(phase_initialized = true;)
        IRQ_RESTORE(flags);
 }
+