|
|
@@ -88,18 +88,18 @@ OPA1.peripheral.$assign = "OPA0";
|
|
|
OPA1.peripheral.OutPin.$assign = "PA22";
|
|
|
OPA1.OutPinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric0";
|
|
|
|
|
|
+PWM1.$name = "PWM";
|
|
|
PWM1.ccIndex = [1];
|
|
|
PWM1.timerCount = 320;
|
|
|
-PWM1.$name = "PWM";
|
|
|
PWM1.peripheral.$assign = "TIMG0";
|
|
|
PWM1.peripheral.ccp1Pin.$assign = "PA6";
|
|
|
PWM1.ccp1PinConfig.direction = scripting.forceWrite("OUTPUT");
|
|
|
PWM1.ccp1PinConfig.hideOutputInversion = scripting.forceWrite(false);
|
|
|
PWM1.ccp1PinConfig.onlyInternalResistor = scripting.forceWrite(false);
|
|
|
PWM1.ccp1PinConfig.passedPeripheralType = scripting.forceWrite("Digital");
|
|
|
-PWM1.ccp1PinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric10";
|
|
|
-PWM1.PWM_CHANNEL_1.$name = "ti_driverlib_pwm_PWMTimerCC3";
|
|
|
-PWM1.PWM_CHANNEL_1.invert = true;
|
|
|
+PWM1.ccp1PinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric1";
|
|
|
+PWM1.PWM_CHANNEL_1.$name = "ti_driverlib_pwm_PWMTimerCC0";
|
|
|
+PWM1.PWM_CHANNEL_1.ccValue = 320;
|
|
|
|
|
|
SYSCTL.disableNRSTPin = true;
|
|
|
SYSCTL.peripheral.$assign = "SYSCTL";
|