Add deprecated switch.
[bertos.git] / bertos / drv / i2c_bitbang.c
index 2cf0e573aaee4b918cb3c45f727e895e8e3090d3..8bc2ffad0104abcae5e7770d603c45a5809e3439 100644 (file)
@@ -54,6 +54,7 @@
 
 #include <cpu/attr.h>
 
+#if !CONFIG_I2C_DISABLE_OLD_API
 
 INLINE bool i2c_bitbang_start(void)
 {
@@ -181,7 +182,7 @@ void i2c_bitbang_init(void)
        SCL_HI;
        MOD_INIT(i2c);
 }
-
+#endif /* !CONFIG_I2C_DISABLE_OLD_API */
 
 /*
  * New I2C API