Update hw files.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 30 Jul 2010 16:09:10 +0000 (16:09 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 30 Jul 2010 16:09:10 +0000 (16:09 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4115 38d2e660-2303-0410-9eaa-f027e97ec537

boards/arduino/hw/hw_i2c_bitbang.h
boards/at91sam7s-ek/hw/hw_i2c_bitbang.h
boards/at91sam7x-ek/hw/hw_i2c_bitbang.h
boards/ek-lm3s1968/hw/hw_i2c_bitbang.h
boards/lpc-p2378/hw/hw_i2c_bitbang.h
boards/stm32-p103/hw/hw_i2c_bitbang.h
boards/triface/hw/hw_i2c_bitbang.h

index 8f3fbf5e88a5771876dd8a9130a20331e52b3329..6aabb46d6a1bb063eaeff211f73b13631b1c1ba7 100644 (file)
  */
 #define I2C_HALFBIT_DELAY() do { /* Implement me! */ } while (0)
 
  */
 #define I2C_HALFBIT_DELAY() do { /* Implement me! */ } while (0)
 
+
+/*
+ * New api
+ */
+#include <cfg/compiler.h>
+
+INLINE void i2c_sdaHi(int dev)
+{
+       (void)(dev);
+       /* Implement me:Set SDA High by setting SDA pin as input */
+}
+
+INLINE void i2c_sdaLo(int dev)
+{
+       (void)(dev);
+       /* Implement me:Set SDA Low by setting SDA pin as open collector output */
+}
+
+INLINE void i2c_sclHi(int dev)
+{
+       (void)(dev);
+       /* Implement me:Set SCL High by setting SCL pin as input */
+}
+
+INLINE void i2c_sclLo(int dev)
+{
+       (void)(dev);
+       /* Implement me:Set SCL Low by setting SCL pin as open collector output */
+}
+
+INLINE bool i2c_sdaIn(int dev)
+{
+       (void)(dev);
+       /* Implement me: read SDA pin state */
+       return true;
+}
+
+INLINE bool i2c_sclIn(int dev)
+{
+       (void)(dev);
+       /* Implement me: read SCL pin state */
+       return true;
+}
+
+/**
+ * Half bit delay routine used to generate the correct timings.
+ */
+INLINE void i2c_halfbitDelay(int dev)
+{
+       (void)(dev);
+       /* Implement me! */
+}
+
+/**
+ * This macro should set SDA and SCL lines as input.
+ */
+INLINE void i2c_bitbangInit(int dev)
+{
+       (void)(dev);
+       /* Implement me! */
+}
+
 #endif /* HW_I2C_BITBANG_H */
 #endif /* HW_I2C_BITBANG_H */
index 8f3fbf5e88a5771876dd8a9130a20331e52b3329..6aabb46d6a1bb063eaeff211f73b13631b1c1ba7 100644 (file)
  */
 #define I2C_HALFBIT_DELAY() do { /* Implement me! */ } while (0)
 
  */
 #define I2C_HALFBIT_DELAY() do { /* Implement me! */ } while (0)
 
+
+/*
+ * New api
+ */
+#include <cfg/compiler.h>
+
+INLINE void i2c_sdaHi(int dev)
+{
+       (void)(dev);
+       /* Implement me:Set SDA High by setting SDA pin as input */
+}
+
+INLINE void i2c_sdaLo(int dev)
+{
+       (void)(dev);
+       /* Implement me:Set SDA Low by setting SDA pin as open collector output */
+}
+
+INLINE void i2c_sclHi(int dev)
+{
+       (void)(dev);
+       /* Implement me:Set SCL High by setting SCL pin as input */
+}
+
+INLINE void i2c_sclLo(int dev)
+{
+       (void)(dev);
+       /* Implement me:Set SCL Low by setting SCL pin as open collector output */
+}
+
+INLINE bool i2c_sdaIn(int dev)
+{
+       (void)(dev);
+       /* Implement me: read SDA pin state */
+       return true;
+}
+
+INLINE bool i2c_sclIn(int dev)
+{
+       (void)(dev);
+       /* Implement me: read SCL pin state */
+       return true;
+}
+
+/**
+ * Half bit delay routine used to generate the correct timings.
+ */
+INLINE void i2c_halfbitDelay(int dev)
+{
+       (void)(dev);
+       /* Implement me! */
+}
+
+/**
+ * This macro should set SDA and SCL lines as input.
+ */
+INLINE void i2c_bitbangInit(int dev)
+{
+       (void)(dev);
+       /* Implement me! */
+}
+
 #endif /* HW_I2C_BITBANG_H */
 #endif /* HW_I2C_BITBANG_H */
index 8f3fbf5e88a5771876dd8a9130a20331e52b3329..6aabb46d6a1bb063eaeff211f73b13631b1c1ba7 100644 (file)
  */
 #define I2C_HALFBIT_DELAY() do { /* Implement me! */ } while (0)
 
  */
 #define I2C_HALFBIT_DELAY() do { /* Implement me! */ } while (0)
 
+
+/*
+ * New api
+ */
+#include <cfg/compiler.h>
+
+INLINE void i2c_sdaHi(int dev)
+{
+       (void)(dev);
+       /* Implement me:Set SDA High by setting SDA pin as input */
+}
+
+INLINE void i2c_sdaLo(int dev)
+{
+       (void)(dev);
+       /* Implement me:Set SDA Low by setting SDA pin as open collector output */
+}
+
+INLINE void i2c_sclHi(int dev)
+{
+       (void)(dev);
+       /* Implement me:Set SCL High by setting SCL pin as input */
+}
+
+INLINE void i2c_sclLo(int dev)
+{
+       (void)(dev);
+       /* Implement me:Set SCL Low by setting SCL pin as open collector output */
+}
+
+INLINE bool i2c_sdaIn(int dev)
+{
+       (void)(dev);
+       /* Implement me: read SDA pin state */
+       return true;
+}
+
+INLINE bool i2c_sclIn(int dev)
+{
+       (void)(dev);
+       /* Implement me: read SCL pin state */
+       return true;
+}
+
+/**
+ * Half bit delay routine used to generate the correct timings.
+ */
+INLINE void i2c_halfbitDelay(int dev)
+{
+       (void)(dev);
+       /* Implement me! */
+}
+
+/**
+ * This macro should set SDA and SCL lines as input.
+ */
+INLINE void i2c_bitbangInit(int dev)
+{
+       (void)(dev);
+       /* Implement me! */
+}
+
 #endif /* HW_I2C_BITBANG_H */
 #endif /* HW_I2C_BITBANG_H */
index 8f3fbf5e88a5771876dd8a9130a20331e52b3329..6aabb46d6a1bb063eaeff211f73b13631b1c1ba7 100644 (file)
  */
 #define I2C_HALFBIT_DELAY() do { /* Implement me! */ } while (0)
 
  */
 #define I2C_HALFBIT_DELAY() do { /* Implement me! */ } while (0)
 
+
+/*
+ * New api
+ */
+#include <cfg/compiler.h>
+
+INLINE void i2c_sdaHi(int dev)
+{
+       (void)(dev);
+       /* Implement me:Set SDA High by setting SDA pin as input */
+}
+
+INLINE void i2c_sdaLo(int dev)
+{
+       (void)(dev);
+       /* Implement me:Set SDA Low by setting SDA pin as open collector output */
+}
+
+INLINE void i2c_sclHi(int dev)
+{
+       (void)(dev);
+       /* Implement me:Set SCL High by setting SCL pin as input */
+}
+
+INLINE void i2c_sclLo(int dev)
+{
+       (void)(dev);
+       /* Implement me:Set SCL Low by setting SCL pin as open collector output */
+}
+
+INLINE bool i2c_sdaIn(int dev)
+{
+       (void)(dev);
+       /* Implement me: read SDA pin state */
+       return true;
+}
+
+INLINE bool i2c_sclIn(int dev)
+{
+       (void)(dev);
+       /* Implement me: read SCL pin state */
+       return true;
+}
+
+/**
+ * Half bit delay routine used to generate the correct timings.
+ */
+INLINE void i2c_halfbitDelay(int dev)
+{
+       (void)(dev);
+       /* Implement me! */
+}
+
+/**
+ * This macro should set SDA and SCL lines as input.
+ */
+INLINE void i2c_bitbangInit(int dev)
+{
+       (void)(dev);
+       /* Implement me! */
+}
+
 #endif /* HW_I2C_BITBANG_H */
 #endif /* HW_I2C_BITBANG_H */
index 8f3fbf5e88a5771876dd8a9130a20331e52b3329..6aabb46d6a1bb063eaeff211f73b13631b1c1ba7 100644 (file)
  */
 #define I2C_HALFBIT_DELAY() do { /* Implement me! */ } while (0)
 
  */
 #define I2C_HALFBIT_DELAY() do { /* Implement me! */ } while (0)
 
+
+/*
+ * New api
+ */
+#include <cfg/compiler.h>
+
+INLINE void i2c_sdaHi(int dev)
+{
+       (void)(dev);
+       /* Implement me:Set SDA High by setting SDA pin as input */
+}
+
+INLINE void i2c_sdaLo(int dev)
+{
+       (void)(dev);
+       /* Implement me:Set SDA Low by setting SDA pin as open collector output */
+}
+
+INLINE void i2c_sclHi(int dev)
+{
+       (void)(dev);
+       /* Implement me:Set SCL High by setting SCL pin as input */
+}
+
+INLINE void i2c_sclLo(int dev)
+{
+       (void)(dev);
+       /* Implement me:Set SCL Low by setting SCL pin as open collector output */
+}
+
+INLINE bool i2c_sdaIn(int dev)
+{
+       (void)(dev);
+       /* Implement me: read SDA pin state */
+       return true;
+}
+
+INLINE bool i2c_sclIn(int dev)
+{
+       (void)(dev);
+       /* Implement me: read SCL pin state */
+       return true;
+}
+
+/**
+ * Half bit delay routine used to generate the correct timings.
+ */
+INLINE void i2c_halfbitDelay(int dev)
+{
+       (void)(dev);
+       /* Implement me! */
+}
+
+/**
+ * This macro should set SDA and SCL lines as input.
+ */
+INLINE void i2c_bitbangInit(int dev)
+{
+       (void)(dev);
+       /* Implement me! */
+}
+
 #endif /* HW_I2C_BITBANG_H */
 #endif /* HW_I2C_BITBANG_H */
index 8f3fbf5e88a5771876dd8a9130a20331e52b3329..6aabb46d6a1bb063eaeff211f73b13631b1c1ba7 100644 (file)
  */
 #define I2C_HALFBIT_DELAY() do { /* Implement me! */ } while (0)
 
  */
 #define I2C_HALFBIT_DELAY() do { /* Implement me! */ } while (0)
 
+
+/*
+ * New api
+ */
+#include <cfg/compiler.h>
+
+INLINE void i2c_sdaHi(int dev)
+{
+       (void)(dev);
+       /* Implement me:Set SDA High by setting SDA pin as input */
+}
+
+INLINE void i2c_sdaLo(int dev)
+{
+       (void)(dev);
+       /* Implement me:Set SDA Low by setting SDA pin as open collector output */
+}
+
+INLINE void i2c_sclHi(int dev)
+{
+       (void)(dev);
+       /* Implement me:Set SCL High by setting SCL pin as input */
+}
+
+INLINE void i2c_sclLo(int dev)
+{
+       (void)(dev);
+       /* Implement me:Set SCL Low by setting SCL pin as open collector output */
+}
+
+INLINE bool i2c_sdaIn(int dev)
+{
+       (void)(dev);
+       /* Implement me: read SDA pin state */
+       return true;
+}
+
+INLINE bool i2c_sclIn(int dev)
+{
+       (void)(dev);
+       /* Implement me: read SCL pin state */
+       return true;
+}
+
+/**
+ * Half bit delay routine used to generate the correct timings.
+ */
+INLINE void i2c_halfbitDelay(int dev)
+{
+       (void)(dev);
+       /* Implement me! */
+}
+
+/**
+ * This macro should set SDA and SCL lines as input.
+ */
+INLINE void i2c_bitbangInit(int dev)
+{
+       (void)(dev);
+       /* Implement me! */
+}
+
 #endif /* HW_I2C_BITBANG_H */
 #endif /* HW_I2C_BITBANG_H */
index 8f3fbf5e88a5771876dd8a9130a20331e52b3329..6aabb46d6a1bb063eaeff211f73b13631b1c1ba7 100644 (file)
  */
 #define I2C_HALFBIT_DELAY() do { /* Implement me! */ } while (0)
 
  */
 #define I2C_HALFBIT_DELAY() do { /* Implement me! */ } while (0)
 
+
+/*
+ * New api
+ */
+#include <cfg/compiler.h>
+
+INLINE void i2c_sdaHi(int dev)
+{
+       (void)(dev);
+       /* Implement me:Set SDA High by setting SDA pin as input */
+}
+
+INLINE void i2c_sdaLo(int dev)
+{
+       (void)(dev);
+       /* Implement me:Set SDA Low by setting SDA pin as open collector output */
+}
+
+INLINE void i2c_sclHi(int dev)
+{
+       (void)(dev);
+       /* Implement me:Set SCL High by setting SCL pin as input */
+}
+
+INLINE void i2c_sclLo(int dev)
+{
+       (void)(dev);
+       /* Implement me:Set SCL Low by setting SCL pin as open collector output */
+}
+
+INLINE bool i2c_sdaIn(int dev)
+{
+       (void)(dev);
+       /* Implement me: read SDA pin state */
+       return true;
+}
+
+INLINE bool i2c_sclIn(int dev)
+{
+       (void)(dev);
+       /* Implement me: read SCL pin state */
+       return true;
+}
+
+/**
+ * Half bit delay routine used to generate the correct timings.
+ */
+INLINE void i2c_halfbitDelay(int dev)
+{
+       (void)(dev);
+       /* Implement me! */
+}
+
+/**
+ * This macro should set SDA and SCL lines as input.
+ */
+INLINE void i2c_bitbangInit(int dev)
+{
+       (void)(dev);
+       /* Implement me! */
+}
+
 #endif /* HW_I2C_BITBANG_H */
 #endif /* HW_I2C_BITBANG_H */