From 4c2bae5c4f54d1eb5ec372da1456120d386e1f05 Mon Sep 17 00:00:00 2001 From: asterix Date: Fri, 30 Jul 2010 15:35:20 +0000 Subject: [PATCH] Add deprecated switch. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4110 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/drv/i2c_bitbang.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bertos/drv/i2c_bitbang.c b/bertos/drv/i2c_bitbang.c index 2cf0e573..8bc2ffad 100644 --- a/bertos/drv/i2c_bitbang.c +++ b/bertos/drv/i2c_bitbang.c @@ -54,6 +54,7 @@ #include +#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 -- 2.25.1