Kaynağa Gözat

Timeouts für I2C Kommunikation

Heinrich Blatt 6 ay önce
ebeveyn
işleme
972ffe8b23
1 değiştirilmiş dosya ile 5 ekleme ve 0 silme
  1. 5 0
      main_target.syscfg

+ 5 - 0
main_target.syscfg

@@ -58,6 +58,11 @@ I2C2.$name                             = "I2C_target";
 I2C2.basicEnableTarget                 = true;
 I2C2.intTarget                         = ["RXFIFO_TRIGGER","START","STOP","TXFIFO_TRIGGER"];
 I2C2.basicTargetAddress                = 0x48;
+I2C2.enableTimeoutA                    = true;
+I2C2.timeoutACount                     = 125;
+I2C2.enableTimeoutB                    = true;
+I2C2.timeoutBCount                     = 125;
+I2C2.intGeneric                        = ["TIMEOUT_A","TIMEOUT_B"];
 I2C2.peripheral.sdaPin.$assign         = "PA0";
 I2C2.peripheral.sclPin.$assign         = "PA1/NRST";
 I2C2.sdaPinConfig.$name                = "ti_driverlib_gpio_GPIOPinGeneric2";