Add deprecated switch.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 30 Jul 2010 15:35:20 +0000 (15:35 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 30 Jul 2010 15:35:20 +0000 (15:35 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4110 38d2e660-2303-0410-9eaa-f027e97ec537

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