projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
USB: coding style fixes (structure naming)
[bertos.git]
/
bertos
/
hw
/
hw_mcp41.c
diff --git
a/bertos/hw/hw_mcp41.c
b/bertos/hw/hw_mcp41.c
index 88cd4ea0905643c452073d85c32a9d346a3fde30..512b19a1dda7e935afedfd2f49a95f79e6202260 100644
(file)
--- a/
bertos/hw/hw_mcp41.c
+++ b/
bertos/hw/hw_mcp41.c
@@
-29,27
+29,24
@@
* Copyright 2006 Develer S.r.l. (http://www.develer.com/)
* -->
*
* Copyright 2006 Develer S.r.l. (http://www.develer.com/)
* -->
*
- * \version $Id$
- *
* \brief MCP41 hardware-specific definitions
*
* \brief MCP41 hardware-specific definitions
*
- * \version $Id$
* \author Francesco Sacchi <batt@develer.com>
*/
* \author Francesco Sacchi <batt@develer.com>
*/
-#include
<hw_mcp41.h>
+#include
"hw/hw_mcp41.h"
#include <cfg/macros.h>
#include <cfg/compiler.h>
#include <cfg/macros.h>
#include <cfg/compiler.h>
-#
include <avr/io.h>
+#
warning TODO:This is an example implementation, you must implement it!
+const uint16_t mcp41_ports[MCP41_CNT] =
+{
+ 0, /* add here mcp41 ports */
+};
+const uint8_t mcp41_pins [MCP41_CNT] =
+{
+ 0, /* add here mcp41 ports */
+};
-const uint16_t mcp41_ports[MCP41_CNT] = {
- _SFR_IO_ADDR(PORTB), /** Led pot */
- _SFR_IO_ADDR(PORTB), /** Photometer pot */
- };
-const uint8_t mcp41_pins [MCP41_CNT] = {
- BV(PB7),
- BV(PB6),
- };