X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Fmcp41.h;h=6f5cf366cffc20f6dd8a61e4180b24dc48b40402;hb=81f2387d160fee072af03291b5682a06f5b807cd;hp=827b903b544958d049d4626b3952f7f574d661a3;hpb=3fb609d60480eefd5e43d48d13cb9f387c38cb0f;p=bertos.git diff --git a/bertos/drv/mcp41.h b/bertos/drv/mcp41.h index 827b903b..6f5cf366 100644 --- a/bertos/drv/mcp41.h +++ b/bertos/drv/mcp41.h @@ -31,10 +31,14 @@ * * \version $Id$ * - * \brief MCP41xxx digital potentiomenter driver (interface) + * \brief MCP41xxx digital potentiomenter driver. * * \version $Id$ * \author Francesco Sacchi + * + * $WIZ$ module_name = "mcp41" + * $WIZ$ module_depends = "timer", "kfile" + * $WIZ$ module_hw = "bertos/hw/hw_mcp41.h", "bertos/hw/hw_mcp41.c", "bertos/hw/mcp41_map.h" */ #ifndef DRV_MCP41_H @@ -43,7 +47,7 @@ #include "hw/mcp41_map.h" #include -#include +#include #define MCP41_WRITE_DATA 0x11 #define MCP41_HW_MAX 255 @@ -55,6 +59,6 @@ typedef uint16_t mcp41_res_t; void mcp41_setResistance(Mcp41Dev dev, mcp41_res_t res); -void mcp41_init(Serial *spi_port); +void mcp41_init(KFile *ch); #endif /* DRV_MCP41_H */