projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Modify the module selection page
[bertos.git]
/
bertos
/
drv
/
phase.c
diff --git
a/bertos/drv/phase.c
b/bertos/drv/phase.c
index e30f46681e2694a562dc537ec21807df9ed9df72..d6c0c73e7345ef7b6a8ec585cff1e9b5efbf2824 100644
(file)
--- a/
bertos/drv/phase.c
+++ b/
bertos/drv/phase.c
@@
-29,28
+29,30
@@
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
* -->
*
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
* -->
*
- * \version $Id$
- *
* \brief Phase control driver (implementation)
*
* \version $Id$
* \brief Phase control driver (implementation)
*
* \version $Id$
+ *
* \author Francesco Sacchi <batt@develer.com>
*/
* \author Francesco Sacchi <batt@develer.com>
*/
-#include <drv/timer.h>
+#include "hw/hw_phase.h"
#include <cfg/macros.h>
#include <cfg/macros.h>
-#include <cpu/irq.h>
-#include <cpu/types.h>
#include <cfg/compiler.h>
#include <cfg/compiler.h>
+#include <cpu/irq.h>
+#include <cpu/types.h>
-#include <
hw_phase
.h>
+#include <
drv/timer
.h>
#include <drv/phase.h>
#include <math.h>
#include <drv/phase.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];
@@
-101,7
+103,7
@@
DEFINE_ZEROCROSS_ISR()
*/
void phase_setDuty(TriacDev dev, triac_duty_t duty)
{
*/
void phase_setDuty(TriacDev dev, triac_duty_t duty)
{
- cpuflags_t flags;
+ cpu
_
flags_t flags;
IRQ_SAVE_DISABLE(flags);
phase_setDutyUnlock(dev,duty);
IRQ_SAVE_DISABLE(flags);
phase_setDutyUnlock(dev,duty);
@@
-171,7
+173,7
@@
static void phase_softint(void *_dev)
*/
void phase_init(void)
{
*/
void phase_init(void)
{
- cpuflags_t flags;
+ cpu
_
flags_t flags;
TriacDev dev;
/* Init timers and ensure that all triac are off */
TriacDev dev;
/* Init timers and ensure that all triac are off */
@@
-190,3
+192,5
@@
void phase_init(void)
DB(phase_initialized = true;)
IRQ_RESTORE(flags);
}
DB(phase_initialized = true;)
IRQ_RESTORE(flags);
}
+#endif
+