|
|
@@ -14,6 +14,7 @@ const GPIO = scripting.addModule("/ti/driverlib/GPIO", {}, false);
|
|
|
const GPIO1 = GPIO.addInstance();
|
|
|
const GPIO2 = GPIO.addInstance();
|
|
|
const GPIO3 = GPIO.addInstance();
|
|
|
+const GPIO4 = GPIO.addInstance();
|
|
|
const I2C = scripting.addModule("/ti/driverlib/I2C", {}, false);
|
|
|
const I2C1 = I2C.addInstance();
|
|
|
const I2C2 = I2C.addInstance();
|
|
|
@@ -60,6 +61,13 @@ GPIO3.associatedPins[3].$name = "ADDR_3";
|
|
|
GPIO3.associatedPins[3].direction = "INPUT";
|
|
|
GPIO3.associatedPins[3].pin.$assign = "PA17";
|
|
|
|
|
|
+GPIO4.$name = "GPIO_ControllerBoard";
|
|
|
+GPIO4.associatedPins.create(2);
|
|
|
+GPIO4.associatedPins[0].$name = "PIN_Run";
|
|
|
+GPIO4.associatedPins[0].pin.$assign = "PA11";
|
|
|
+GPIO4.associatedPins[1].$name = "PIN_Error";
|
|
|
+GPIO4.associatedPins[1].pin.$assign = "PA10";
|
|
|
+
|
|
|
I2C1.$name = "I2C_0";
|
|
|
I2C1.basicEnableTarget = true;
|
|
|
I2C1.intTarget = ["RXFIFO_TRIGGER","RX_DONE","START","STOP","TXFIFO_TRIGGER","TX_DONE"];
|