浏览代码

Main Configuration updated for I2C timeout counter A and B

namrota ghosh 7 月之前
父节点
当前提交
b06a9cd5c5
共有 1 个文件被更改,包括 4 次插入0 次删除
  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";