|
|
@@ -71,6 +71,10 @@ I2C1.sclPinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric1";
|
|
|
I2C2.$name = "I2C_1";
|
|
|
I2C2.basicEnableController = true;
|
|
|
I2C2.intController = ["ARBITRATION_LOST","NACK","RXFIFO_TRIGGER","RX_DONE","TXFIFO_TRIGGER","TX_DONE"];
|
|
|
+I2C2.enableTimeoutA = true;
|
|
|
+I2C2.enableTimeoutB = true;
|
|
|
+I2C2.timeoutACount = 25;
|
|
|
+I2C2.timeoutBCount = 25;
|
|
|
I2C2.peripheral.$assign = "I2C1";
|
|
|
I2C2.peripheral.sdaPin.$assign = "PA3";
|
|
|
I2C2.peripheral.sclPin.$assign = "PA4";
|