X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Fpcf8574.h;fp=bertos%2Fdrv%2Fpcf8574.h;h=bf2f8e5ea5df254da2a4bbda9d3f343f2790695e;hb=53a85c63e98a7ec7456db33b665484df3da33fdb;hp=fa327e28deb6d7e4b033b03965e64beb8861203a;hpb=09befbcd1ee296ad30790e303adec8dc1a104f07;p=bertos.git diff --git a/bertos/drv/pcf8574.h b/bertos/drv/pcf8574.h index fa327e28..bf2f8e5e 100644 --- a/bertos/drv/pcf8574.h +++ b/bertos/drv/pcf8574.h @@ -41,6 +41,8 @@ #ifndef DRV_PCF8574_H #define DRV_PCF8574_H +#include "cfg/cfg_i2c.h" + #include #include @@ -67,9 +69,12 @@ typedef struct Pcf8574 #define PCF8574ID 0x40 ///< I2C address +#if !CONFIG_I2C_DISABLE_OLD_API + DEPRECATED int pcf8574_get_1(Pcf8574 *pcf); DEPRECATED bool pcf8574_put_2(Pcf8574 *pcf, uint8_t data); DEPRECATED bool pcf8574_init_2(Pcf8574 *pcf, pcf8574_addr addr); +#endif /* !CONFIG_I2C_DISABLE_OLD_API */ int pcf8574_get_2(I2c *i2c, Pcf8574 *pcf);