|
|
@@ -12,6 +12,7 @@
|
|
|
const GPIO = scripting.addModule("/ti/driverlib/GPIO", {}, false);
|
|
|
const GPIO1 = GPIO.addInstance();
|
|
|
const GPIO2 = GPIO.addInstance();
|
|
|
+const GPIO3 = GPIO.addInstance();
|
|
|
const I2C = scripting.addModule("/ti/driverlib/I2C", {}, false);
|
|
|
const I2C1 = I2C.addInstance();
|
|
|
const I2C2 = I2C.addInstance();
|
|
|
@@ -41,6 +42,10 @@ GPIO2.associatedPins[0].pin.$assign = "PB8";
|
|
|
GPIO2.associatedPins[1].$name = "PIN_PB12";
|
|
|
GPIO2.associatedPins[1].pin.$assign = "PB12";
|
|
|
|
|
|
+GPIO3.$name = "PWM_GPIO";
|
|
|
+GPIO3.associatedPins[0].$name = "PIN_GPIO";
|
|
|
+GPIO3.associatedPins[0].pin.$assign = "PA5";
|
|
|
+
|
|
|
I2C1.$name = "I2C_0";
|
|
|
I2C1.basicEnableTarget = true;
|
|
|
I2C1.intTarget = ["RXFIFO_TRIGGER","RX_DONE","START","STOP","TXFIFO_TRIGGER","TX_DONE"];
|
|
|
@@ -59,7 +64,7 @@ PWM1.$name = "PWM_0";
|
|
|
PWM1.timerCount = 320;
|
|
|
PWM1.timerStartTimer = true;
|
|
|
PWM1.ccIndex = [0];
|
|
|
-PWM1.peripheral.ccp0Pin.$assign = "PA5";
|
|
|
+PWM1.peripheral.ccp0Pin.$assign = "PA0";
|
|
|
PWM1.PWM_CHANNEL_0.$name = "ti_driverlib_pwm_PWMTimerCC0";
|
|
|
PWM1.ccp0PinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric4";
|
|
|
|
|
|
@@ -75,8 +80,8 @@ Board.peripheral.$suggestSolution = "DEBUGSS";
|
|
|
Board.peripheral.swclkPin.$suggestSolution = "PA20";
|
|
|
Board.peripheral.swdioPin.$suggestSolution = "PA19";
|
|
|
I2C1.peripheral.$suggestSolution = "I2C0";
|
|
|
-I2C1.peripheral.sdaPin.$suggestSolution = "PA0";
|
|
|
+I2C1.peripheral.sdaPin.$suggestSolution = "PA10";
|
|
|
I2C1.peripheral.sclPin.$suggestSolution = "PA1";
|
|
|
I2C2.peripheral.$suggestSolution = "I2C1";
|
|
|
-PWM1.peripheral.$suggestSolution = "TIMG0";
|
|
|
+PWM1.peripheral.$suggestSolution = "TIMA0";
|
|
|
SYSCTL.peripheral.$suggestSolution = "SYSCTL";
|