Typo.
[bertos.git] / bertos / drv / pcf8574.c
index 908d3a0eb584d931a0807acab0958aec6280f8fe..a94b2b7d432015cd8163d1faa6b1f95a269f021c 100644 (file)
 
 #include "pcf8574.h"
 
+#include "cfg/cfg_i2c.h"
+
 #include <cfg/module.h>
 
 #include <drv/i2c.h>
 
+#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 */
 
 
 /*