X-Git-Url: http://git.smho.de/?a=blobdiff_plain;ds=sidebyside;f=common%2FI2C%2FMAX1164x.h.c;fp=common%2FI2C%2FMAX1164x.h.c;h=0000000000000000000000000000000000000000;hb=c612a6c03106176eb24430e254ea8a1dfd8e1343;hp=8160ac2e7ef9d330dacbcb56b4cd21c1503e7c19;hpb=cd30cdb18cadc2525618a111ca657d2ed18bc3f3;p=owSlave2.git diff --git a/common/I2C/MAX1164x.h.c b/common/I2C/MAX1164x.h.c deleted file mode 100644 index 8160ac2..0000000 --- a/common/I2C/MAX1164x.h.c +++ /dev/null @@ -1,55 +0,0 @@ -#define F_CPU 8000000UL -#include -#include -#include -#include -#include -#include "USI_TWI_Master.h" -#include "MAX1164x.h" - -void MAX1164x_init(){ - - -} -void MAX1164x_config(uint8_t setup,uint8_t config){ - I2c_StartCondition(); - I2c_WriteByte (0b01101100); - I2c_WriteByte (setup|0x80); - I2c_WriteByte (config); - I2c_StopCondition(); - -} -int16_t MAX1164x_read() { - uint16_t res; - I2c_StartCondition(); - I2c_WriteByte (0b01101101); - //DDR_USI&=~(1<