X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Fpcf8574.h;h=1a1f186d4d8dd7a775e0eccf012bf730c005bc1a;hb=00bc8478ab5087769fc67e52327934370ee5e3a6;hp=7d53d95ec88cc0268f719c9cc37225c128868014;hpb=830e0e12736975e4da0440cc225ff6a4e98d45ca;p=bertos.git diff --git a/bertos/drv/pcf8574.h b/bertos/drv/pcf8574.h index 7d53d95e..1a1f186d 100644 --- a/bertos/drv/pcf8574.h +++ b/bertos/drv/pcf8574.h @@ -30,10 +30,16 @@ * * --> * - * \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 + * + * $WIZARD_MODULE = { + * "name" : "pcf8574", + * "depends" : ["i2c"], + * "configuration" : "" + * } */ #ifndef DRV_PCF8574_H @@ -51,6 +57,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);