X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=boards%2Farduino%2Fhw%2Fhw_mcp41.h;fp=boards%2Farduino%2Fhw%2Fhw_mcp41.h;h=645b6dac1aff52c7b70379a8697e1d187a8b9d7c;hb=ecb34d7a7fa3e00d9157eeafa2dea50cbbc317ce;hp=0000000000000000000000000000000000000000;hpb=95a0ab6c264432423d7d49839b24504df8fe15f5;p=bertos.git diff --git a/boards/arduino/hw/hw_mcp41.h b/boards/arduino/hw/hw_mcp41.h new file mode 100644 index 00000000..645b6dac --- /dev/null +++ b/boards/arduino/hw/hw_mcp41.h @@ -0,0 +1,75 @@ +/** + * \file + * + * + * \brief MCP41 hardware-specific definitions + * + * \version $Id$ + * \author Francesco Sacchi + */ + +#ifndef HW_MCP41_H +#define HW_MCP41_H + +#include "hw/mcp41_map.h" + +#include + + +#warning TODO:This is an example implementation, you must implement it! + + +INLINE void SET_MCP41_DDR(Mcp41Dev dev) +{ + /* Implement me! */ + //Warning: this funtions is like avr target name, + //fix it to comply for all target. + + //Only for test remove when implement this function + (void)dev; +} + +INLINE void MCP41_ON(Mcp41Dev i) +{ + /* Implement me! */ + + //Only for test remove when implement this function + (void)i; +} + +INLINE void MCP41_OFF(Mcp41Dev i) +{ + /* Implement me! */ + + //Only for test remove when implement this function + (void)i; +} + +#endif /* HW_MCP41_H */