add config.h ; try to OpenLoop control, not passed
This commit is contained in:
@@ -60,7 +60,6 @@ Board.peripheral.swdioPin.$assign = "PA19";
|
||||
I2C1.$name = "I2C_1";
|
||||
I2C1.advAnalogGlitchFilter = "DISABLED";
|
||||
I2C1.basicEnableController = true;
|
||||
I2C1.basicControllerStandardBusSpeed = "Fast";
|
||||
I2C1.peripheral.sdaPin.$assign = "PB3";
|
||||
I2C1.peripheral.sclPin.$assign = "PB2";
|
||||
I2C1.sdaPinConfig.hideOutputInversion = scripting.forceWrite(false);
|
||||
@@ -78,9 +77,9 @@ PWM1.clockDivider = 2;
|
||||
PWM1.timerCount = 2000;
|
||||
PWM1.pwmMode = "CENTER_ALIGN";
|
||||
PWM1.PWM_CHANNEL_0.$name = "ti_driverlib_pwm_PWMTimerCC0";
|
||||
PWM1.PWM_CHANNEL_0.dutyCycle = 25;
|
||||
PWM1.PWM_CHANNEL_0.ccValue = 1000;
|
||||
PWM1.PWM_CHANNEL_1.$name = "ti_driverlib_pwm_PWMTimerCC1";
|
||||
PWM1.PWM_CHANNEL_1.dutyCycle = 50;
|
||||
PWM1.PWM_CHANNEL_1.ccValue = 1000;
|
||||
PWM1.ccp0PinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric4";
|
||||
PWM1.ccp1PinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric5";
|
||||
PWM1.peripheral.$assign = "TIMA0";
|
||||
@@ -88,7 +87,7 @@ PWM1.peripheral.ccp0Pin.$assign = "PA21";
|
||||
PWM1.peripheral.ccp1Pin.$assign = "PA22";
|
||||
PWM1.peripheral.ccp2Pin.$assign = "PB20";
|
||||
PWM1.PWM_CHANNEL_2.$name = "ti_driverlib_pwm_PWMTimerCC2";
|
||||
PWM1.PWM_CHANNEL_2.dutyCycle = 75;
|
||||
PWM1.PWM_CHANNEL_2.ccValue = 1000;
|
||||
PWM1.ccp2PinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric6";
|
||||
|
||||
SYSCTL.forceDefaultClkConfig = true;
|
||||
|
||||
Reference in New Issue
Block a user