X-Git-Url: https://git.smho.de/gw/?p=owSlave2.git;a=blobdiff_plain;f=common%2FI2C%2FUSI_TWI_Master.h;h=19f3e88d061b5dda832f6bfbed38dab5a2be1cbd;hp=d6b1f85f45f820326b5ac40a56d58e4ba549d948;hb=refs%2Fheads%2Fmaster;hpb=6467d8138460abffd9ddabc7b0a9f00c764af19c diff --git a/common/I2C/USI_TWI_Master.h b/common/I2C/USI_TWI_Master.h index d6b1f85..19f3e88 100644 --- a/common/I2C/USI_TWI_Master.h +++ b/common/I2C/USI_TWI_Master.h @@ -121,12 +121,23 @@ #define PIN_USI_SCL PINA4 #endif + +#if defined(__AVR_ATmega328__) | defined(__AVR_ATmega328P__) | defined(__AVR_ATmega328PB__) +#define DDR_USI DDRC +#define PORT_USI PORTC +#define PIN_USI PINC +#define PORT_USI_SDA PORTC4 +#define PORT_USI_SCL PORTC5 +#define PIN_USI_SDA PINC4 +#define PIN_USI_SCL PINC5 +#endif + // General defines #define TRUE 1 #define FALSE 0 -#define ACK (1<