projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make nightly build test works.
[bertos.git]
/
bertos
/
drv
/
phase.c
diff --git
a/bertos/drv/phase.c
b/bertos/drv/phase.c
index d6c0c73e7345ef7b6a8ec585cff1e9b5efbf2824..3a400a369c1a023c1e39449ad34a62ed38bd8852 100644
(file)
--- a/
bertos/drv/phase.c
+++ b/
bertos/drv/phase.c
@@
-50,9
+50,6
@@
#include <math.h>
#include <math.h>
-#warning TODO:Generalize this moduele for all target supported.
-
-#if 0
/** Array of triacs */
static Triac triacs[TRIAC_CNT];
/** Array of triacs */
static Triac triacs[TRIAC_CNT];
@@
-183,7
+180,7
@@
void phase_init(void)
triacs[dev].running = false;
SET_TRIAC_DDR(dev);
TRIAC_OFF(dev);
triacs[dev].running = false;
SET_TRIAC_DDR(dev);
TRIAC_OFF(dev);
- timer_set
_event_s
oftint(&triacs[dev].timer, (Hook)phase_softint, (void *)dev);
+ timer_set
S
oftint(&triacs[dev].timer, (Hook)phase_softint, (void *)dev);
}
IRQ_SAVE_DISABLE(flags);
}
IRQ_SAVE_DISABLE(flags);
@@
-192,5
+189,4
@@
void phase_init(void)
DB(phase_initialized = true;)
IRQ_RESTORE(flags);
}
DB(phase_initialized = true;)
IRQ_RESTORE(flags);
}
-#endif