Pārlūkot izejas kodu

Main Configuration updated for I2C timeout counter A and B

namrota ghosh 7 mēneši atpakaļ
vecāks
revīzija
b06a9cd5c5
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 4 0
      main.syscfg

+ 4 - 0
main.syscfg

@@ -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";