projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reformat.
[bertos.git]
/
bertos
/
hw
/
hw_mcp41.h
diff --git
a/bertos/hw/hw_mcp41.h
b/bertos/hw/hw_mcp41.h
index 8dd6297ef9a6d12d6bc7ba7fa189ab918fc2b87a..1289d60d6bed841a4fd3d820c48df55f4e2fc3ca 100644
(file)
--- a/
bertos/hw/hw_mcp41.h
+++ b/
bertos/hw/hw_mcp41.h
@@
-29,8
+29,6
@@
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
* -->
*
* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
* -->
*
- * \version $Id$
- *
* \brief MCP41 hardware-specific definitions
*
* \version $Id$
* \brief MCP41 hardware-specific definitions
*
* \version $Id$
@@
-40,32
+38,29
@@
#ifndef HW_MCP41_H
#define HW_MCP41_H
#ifndef HW_MCP41_H
#define HW_MCP41_H
-#include <mcp41_map.h>
+#include "mcp41_map.h"
+
#include <cfg/compiler.h>
#include <cfg/compiler.h>
-#include <cpu/irq.h>
-#include <avr/io.h>
-extern const uint16_t mcp41_ports[MCP41_CNT];
-extern const uint8_t mcp41_pins[MCP41_CNT];
-/**
- * Set MCP41 port associated with \a dev to output.
- */
+#warning TODO: This is example implementation, you must implement it!
+
+
INLINE void SET_MCP41_DDR(Mcp41Dev dev)
{
INLINE void SET_MCP41_DDR(Mcp41Dev dev)
{
- /* DDR port is 1 address before PORT */
- ATOMIC(_SFR_IO8(mcp41_ports[dev] - 1) |= mcp41_pins[dev]);
+ /* Implement me! */
+ //Warning: this funtions is like avr target name,
+ //fix it to comply for all target.
}
INLINE void MCP41_ON(Mcp41Dev i)
{
}
INLINE void MCP41_ON(Mcp41Dev i)
{
- ATOMIC(_SFR_IO8(mcp41_ports[i]) &= ~mcp41_pins[i]);
+ /* Implement me! */
}
INLINE void MCP41_OFF(Mcp41Dev i)
{
}
INLINE void MCP41_OFF(Mcp41Dev i)
{
- ATOMIC(_SFR_IO8(mcp41_ports[i]) |= mcp41_pins[i]);
+ /* Implement me! */
}
}
-
#endif /* HW_MCP41_H */
#endif /* HW_MCP41_H */