X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fhw%2Fhw_mcp41.c;h=512b19a1dda7e935afedfd2f49a95f79e6202260;hb=12a865a058c2c3da0e4da685158f3a506ffad876;hp=88cd4ea0905643c452073d85c32a9d346a3fde30;hpb=791e167e053bdd9250d34a9a5ccae6ccde4d6679;p=bertos.git diff --git a/bertos/hw/hw_mcp41.c b/bertos/hw/hw_mcp41.c index 88cd4ea0..512b19a1 100644 --- 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/) * --> * - * \version $Id$ - * * \brief MCP41 hardware-specific definitions * - * \version $Id$ * \author Francesco Sacchi */ -#include +#include "hw/hw_mcp41.h" #include #include -#include +#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), - };