/** * These arguments were used when this file was generated. They will be automatically applied on subsequent loads * via the GUI or CLI. Run CLI with '--help' for additional information on how to override these arguments. * @cliArgs --device "MSPM0G350X" --part "Default" --package "LQFP-48(PT)" --product "mspm0_sdk@2.03.00.08" * @v2CliArgs --device "MSPM0G3507" --package "LQFP-48(PT)" --product "mspm0_sdk@2.03.00.08" * @versions {"tool":"1.22.0+3893"} */ /** * Import the modules used in this configuration. */ const ADC12 = scripting.addModule("/ti/driverlib/ADC12", {}, false); const ADC121 = ADC12.addInstance(); const Board = scripting.addModule("/ti/driverlib/Board"); 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(); const PWM = scripting.addModule("/ti/driverlib/PWM", {}, false); const PWM1 = PWM.addInstance(); const SYSCTL = scripting.addModule("/ti/driverlib/SYSCTL"); const TIMER = scripting.addModule("/ti/driverlib/TIMER", {}, false); const TIMER1 = TIMER.addInstance(); const ProjectConfig = scripting.addModule("/ti/project_config/ProjectConfig"); /** * Write custom configuration values to the imported modules. */ ADC121.$name = "ADC_Controller"; ADC121.sampClkDiv = "DL_ADC12_CLOCK_DIVIDE_8"; ADC121.powerDownMode = "DL_ADC12_POWER_DOWN_MODE_MANUAL"; ADC121.sampleTime0 = "12.5 us"; ADC121.enabledInterrupts = ["DL_ADC12_INTERRUPT_MEM0_RESULT_LOADED"]; ADC121.sampClkSrc = "DL_ADC12_CLOCK_ULPCLK"; ADC121.adcMem0chansel = "DL_ADC12_INPUT_CHAN_4"; ADC121.peripheral.adcPin4.$assign = "PB17"; ADC121.adcPin4Config.$name = "ti_driverlib_gpio_GPIOPinGeneric5"; Board.configureUnused = true; Board.peripheral.$assign = "DEBUGSS"; Board.peripheral.swclkPin.$assign = "PA20"; Board.peripheral.swdioPin.$assign = "PA19"; GPIO1.$name = "GPIO_Battery_Charging"; GPIO1.associatedPins.create(8); GPIO1.associatedPins[0].$name = "PIN_PB7"; GPIO1.associatedPins[0].pin.$assign = "PB7"; GPIO1.associatedPins[1].$name = "PIN_PB9"; GPIO1.associatedPins[1].pin.$assign = "PB9"; GPIO1.associatedPins[2].$name = "PIN_PB15"; GPIO1.associatedPins[2].pin.$assign = "PB15"; GPIO1.associatedPins[3].$name = "PIN_PA12"; GPIO1.associatedPins[3].pin.$assign = "PA12"; GPIO1.associatedPins[4].$name = "PIN_PB19"; GPIO1.associatedPins[4].pin.$assign = "PB19"; GPIO1.associatedPins[5].$name = "PIN_PB20"; GPIO1.associatedPins[5].pin.$assign = "PB20"; GPIO1.associatedPins[6].$name = "PIN_PA24"; GPIO1.associatedPins[6].pin.$assign = "PA24"; GPIO1.associatedPins[7].$name = "PIN_PA26"; GPIO1.associatedPins[7].pin.$assign = "PA26"; GPIO2.$name = "GPIO_Battery_Discharging"; GPIO2.associatedPins.create(8); GPIO2.associatedPins[0].$name = "PIN_PB6"; GPIO2.associatedPins[0].pin.$assign = "PA6"; GPIO2.associatedPins[1].$name = "PIN_PB8"; GPIO2.associatedPins[1].pin.$assign = "PB8"; GPIO2.associatedPins[2].$name = "PIN_PB14"; GPIO2.associatedPins[2].pin.$assign = "PB14"; GPIO2.associatedPins[3].$name = "PIN_PB16"; GPIO2.associatedPins[3].pin.$assign = "PB16"; GPIO2.associatedPins[4].$name = "PIN_PB18"; GPIO2.associatedPins[4].pin.$assign = "PB18"; GPIO2.associatedPins[5].$name = "PIN_PA22"; GPIO2.associatedPins[5].pin.$assign = "PA22"; GPIO2.associatedPins[6].$name = "PIN_PB24"; GPIO2.associatedPins[6].pin.$assign = "PB24"; GPIO2.associatedPins[7].$name = "PIN_PA25"; GPIO2.associatedPins[7].pin.$assign = "PA25"; GPIO3.port = "PORTA"; GPIO3.$name = "GPIO_ADDR_PINS"; GPIO3.associatedPins.create(4); GPIO3.associatedPins[0].$name = "ADDR_0"; GPIO3.associatedPins[0].direction = "INPUT"; GPIO3.associatedPins[0].pin.$assign = "PA14"; GPIO3.associatedPins[1].$name = "ADDR_1"; GPIO3.associatedPins[1].direction = "INPUT"; GPIO3.associatedPins[1].pin.$assign = "PA15"; GPIO3.associatedPins[2].$name = "ADDR_2"; GPIO3.associatedPins[2].direction = "INPUT"; GPIO3.associatedPins[2].pin.$assign = "PA16"; 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 = "LED_Run"; GPIO4.associatedPins[0].pin.$assign = "PA11"; GPIO4.associatedPins[1].$name = "LED_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"]; I2C1.basicTargetAddress = 0x20; I2C1.peripheral.$assign = "I2C0"; I2C1.peripheral.sdaPin.$assign = "PA0"; I2C1.peripheral.sclPin.$assign = "PA1"; I2C1.sdaPinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric0"; I2C1.sclPinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric1"; I2C2.$name = "I2C_1"; I2C2.basicEnableController = true; I2C2.intController = ["ARBITRATION_LOST","NACK","RXFIFO_TRIGGER","RX_DONE","TXFIFO_TRIGGER","TX_DONE"]; I2C2.enableTimeoutA = true; I2C2.enableTimeoutB = true; I2C2.timeoutACount = 25; I2C2.timeoutBCount = 25; I2C2.intGeneric = ["TIMEOUT_A","TIMEOUT_B"]; I2C2.peripheral.$assign = "I2C1"; I2C2.peripheral.sdaPin.$assign = "PA3"; I2C2.peripheral.sclPin.$assign = "PA4"; I2C2.sdaPinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric2"; I2C2.sdaPinConfig.enableConfig = true; I2C2.sclPinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric3"; I2C2.sclPinConfig.enableConfig = true; PWM1.$name = "PWM_0"; PWM1.timerStartTimer = true; PWM1.ccIndex = [0]; PWM1.timerCount = 320; PWM1.peripheral.ccp0Pin.$assign = "PA5"; PWM1.PWM_CHANNEL_0.$name = "ti_driverlib_pwm_PWMTimerCC0"; PWM1.PWM_CHANNEL_0.invert = true; PWM1.ccp0PinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric4"; SYSCTL.clockTreeEn = true; SYSCTL.powerPolicy = "STANDBY0"; SYSCTL.forceDefaultClkConfig = true; SYSCTL.validateClkStatus = true; TIMER1.$name = "TIMER_0"; TIMER1.timerClkSrc = "LFCLK"; TIMER1.timerClkPrescale = 33; TIMER1.timerMode = "PERIODIC"; TIMER1.timerPeriod = "300 ms"; TIMER1.interrupts = ["ZERO"]; TIMER1.peripheral.$assign = "TIMG0"; ProjectConfig.migrationCondition = true; /** * Pinmux solution for unlocked pins/peripherals. This ensures that minor changes to the automatic solver in a future * version of the tool will not impact the pinmux you originally saw. These lines can be completely deleted in order to * re-solve from scratch. */ ADC121.peripheral.$suggestSolution = "ADC1"; PWM1.peripheral.$suggestSolution = "TIMG6";