BeRTOS
Defines | Functions
hw_i2c_bitbang.h File Reference

Macro for I2C bitbang operation. More...

#include <cfg/compiler.h>

Go to the source code of this file.

Defines

#define I2C_BITBANG_HW_INIT   do { /* Implement me! */ } while (0)
 This macro should set SDA and SCL lines as input.
#define I2C_HALFBIT_DELAY()   do { /* Implement me! */ } while (0)
 Half bit delay routine used to generate the correct timings.

Functions

void i2c_halfbitDelay (int dev)
 Half bit delay routine used to generate the correct timings.
void i2c_bitbangInit (int dev)
 This macro should set SDA and SCL lines as input.

Detailed Description

Macro for I2C bitbang operation.

Author:
Francesco Sacchi <batt@develer.com>

Definition in file hw_i2c_bitbang.h.