X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Fpcf8574.h;h=0eab5c3966ed89634d33c95941aa55bd71fac062;hb=8b2b3759daf3222963cbb3cd4364fef556622e87;hp=7d53d95ec88cc0268f719c9cc37225c128868014;hpb=830e0e12736975e4da0440cc225ff6a4e98d45ca;p=bertos.git diff --git a/bertos/drv/pcf8574.h b/bertos/drv/pcf8574.h index 7d53d95e..0eab5c39 100644 --- a/bertos/drv/pcf8574.h +++ b/bertos/drv/pcf8574.h @@ -30,10 +30,13 @@ * * --> * - * \brief PCF8574 i2c port expander driver (interface). + * \brief PCF8574 i2c port expander driver. * * \version $Id: ft245rl.c 22301 2008-09-09 16:53:17Z batt $ * \author Francesco Sacchi + * + * $WIZ$ module_name = "pcf8574" + * $WIZ$ module_depends = "i2c" */ #ifndef DRV_PCF8574_H @@ -51,6 +54,7 @@ typedef struct Pcf8574 pcf8574_addr addr; } Pcf8574; +#define PCF8574ID 0x40 ///< I2C address int pcf8574_get(Pcf8574 *pcf); bool pcf8574_put(Pcf8574 *pcf, uint8_t data);