X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fhw%2Fhw_mcp41.c;h=dc2a051cedadb818d516c894f9a93f69d725600a;hb=1d4ca8e6ec2fa970bca09445e44c50beab9ce060;hp=88cd4ea0905643c452073d85c32a9d346a3fde30;hpb=791e167e053bdd9250d34a9a5ccae6ccde4d6679;p=bertos.git diff --git a/bertos/hw/hw_mcp41.c b/bertos/hw/hw_mcp41.c index 88cd4ea0..dc2a051c 100644 --- a/bertos/hw/hw_mcp41.c +++ b/bertos/hw/hw_mcp41.c @@ -29,27 +29,25 @@ * 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), - };