Explorar el Código

Timeouts für I2C Kommunikation

Heinrich Blatt hace 6 meses
padre
commit
972ffe8b23
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  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";