fake-i2c.c 396 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#include "i2c.h"

void mi2c_init(uint8_t i2cif)
{}

uint8_t mi2c_devprobe(uint8_t i2cif, uint8_t i2c_addr)
{ return 0; }

void mi2c_start(uint8_t i2cif)
{}

void mi2c_repeat_start(uint8_t i2cif)
{}

void mi2c_stop(uint8_t i2cif)
{}

unsigned char mi2c_put_byte(uint8_t i2cif, unsigned char data)
{ return 1; }

void mi2c_get_byte(uint8_t i2cif, unsigned char *data, uint8_t last)
{ *data = 0; }