X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Fpcf8574.c;h=a94b2b7d432015cd8163d1faa6b1f95a269f021c;hb=39184f9b190fdcfec2f17aad6f0de8b2edf04a02;hp=908d3a0eb584d931a0807acab0958aec6280f8fe;hpb=c28e83e32cf419cf20a680724c97dd0253696883;p=bertos.git diff --git a/bertos/drv/pcf8574.c b/bertos/drv/pcf8574.c index 908d3a0e..a94b2b7d 100644 --- a/bertos/drv/pcf8574.c +++ b/bertos/drv/pcf8574.c @@ -45,10 +45,13 @@ #include "pcf8574.h" +#include "cfg/cfg_i2c.h" + #include #include +#if !CONFIG_I2C_DISABLE_OLD_API INLINE int pcf8574_get_priv(Pcf8574 *pcf) { @@ -65,7 +68,6 @@ INLINE int pcf8574_get_priv(Pcf8574 *pcf) return data; } - /** * Read PCF8574 \a pcf bit status. * \return the pins status or EOF on errors. @@ -96,7 +98,7 @@ bool pcf8574_init_2(Pcf8574 *pcf, pcf8574_addr addr) pcf->addr = addr; return pcf8574_get_priv(pcf) != EOF; } - +#endif /* !CONFIG_I2C_DISABLE_OLD_API */ /*