Changeset 1920

Show
Ignore:
Timestamp:
11/11/08 15:46:59 (2 months ago)
Author:
batt
Message:

Silence warning when testing.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/bertos/hw/hw_i2c_bitbang.h

    r1877 r1920  
    4545#warning TODO:This is an example implementation, you must implement it! 
    4646 
    47 #define SDA_HI  /* Implement me:Set SDA High by setting SDA pin as input */ 
    48 #define SDA_LO  /* Implement me:Set SDA Low by setting SDA pin as open collector output */ 
    49 #define SCL_HI  /* Implement me:Set SCL High by setting SCL pin as input */ 
    50 #define SCL_LO  /* Implement me:Set SCL Low by setting SCL pin as open collector output */ 
     47#define SDA_HI  do { /* Implement me:Set SDA High by setting SDA pin as input */ } while (0) 
     48#define SDA_LO  do { /* Implement me:Set SDA Low by setting SDA pin as open collector output */ } while (0) 
     49#define SCL_HI  do { /* Implement me:Set SCL High by setting SCL pin as input */ } while (0) 
     50#define SCL_LO  do { /* Implement me:Set SCL Low by setting SCL pin as open collector output */ } while (0) 
    5151 
    5252 
     
    5757 * This macro should set SDA and SCL lines as input. 
    5858 */ 
    59 #define I2C_BITBANG_HW_INIT /* Implement me! */ 
     59#define I2C_BITBANG_HW_INIT do { /* Implement me! */ } while (0) 
    6060 
    6161/** 
    6262 * Half bit delay routine used to generate the correct timings. 
    6363 */ 
    64 #define I2C_HALFBIT_DELAY() /* Implement me! */ 
     64#define I2C_HALFBIT_DELAY() do { /* Implement me! */ } while (0) 
    6565 
    6666#endif /* HW_I2C_BITBANG_H */