Remove dependece from log module.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 27 Jul 2010 14:58:37 +0000 (14:58 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 27 Jul 2010 14:58:37 +0000 (14:58 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4078 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/drv/i2c.h

index 268e2451e89c9b1d0c2110d38821ae6b80f9f445..7731cd81588b5d55c7ce908850a5504394a32288 100644 (file)
 
 #include "cfg/cfg_i2c.h"
 
-#define LOG_LEVEL  I2C_LOG_LEVEL
-#define LOG_FORMAT I2C_LOG_FORMAT
-
-#include <cfg/log.h>
-
 #include <cfg/compiler.h>
 #include <cfg/macros.h>
 #include <cfg/debug.h>
@@ -296,11 +291,6 @@ INLINE int i2c_error(I2c *i2c)
        int err = i2c->errors;
        i2c->errors = 0;
 
-       LOG_ERRB(
-               if (err)
-                       LOG_ERR("err[%02x]\n", err);
-       );
-
        return err;
 }