/** * 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-64(PM)" --product "mspm0_sdk@2.09.00.00" * @v2CliArgs --device "MSPM0G3507" --package "LQFP-64(PM)" --product "mspm0_sdk@2.09.00.00" * @versions {"tool":"1.26.0+4407"} */ /** * 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 SYSCTL = scripting.addModule("/ti/driverlib/SYSCTL"); const VREF = scripting.addModule("/ti/driverlib/VREF"); /** * Write custom configuration values to the imported modules. */ ADC121.$name = "ADC12_0"; ADC121.sampClkSrc = "DL_ADC12_CLOCK_ULPCLK"; ADC121.sampClkDiv = "DL_ADC12_CLOCK_DIVIDE_8"; ADC121.adcMem0chansel = "DL_ADC12_INPUT_CHAN_2"; ADC121.sampleTime0 = "125 us"; ADC121.enabledInterrupts = ["DL_ADC12_INTERRUPT_MEM0_RESULT_LOADED"]; ADC121.adcMem0vref = "VREF"; ADC121.powerDownMode = "DL_ADC12_POWER_DOWN_MODE_MANUAL"; ADC121.peripheral.$assign = "ADC0"; ADC121.peripheral.adcPin2.$assign = "PA25"; ADC121.adcPin2Config.$name = "ti_driverlib_gpio_GPIOPinGeneric0"; GPIO1.$name = "GPIO_LEDS"; GPIO1.port = "PORTA"; GPIO1.portSegment = "Lower"; GPIO1.associatedPins[0].$name = "USER_LED_1"; GPIO1.associatedPins[0].assignedPin = "0"; GPIO1.associatedPins[0].initialValue = "SET"; GPIO1.associatedPins[0].pin.$assign = "PA0"; SYSCTL.forceDefaultClkConfig = true; SYSCTL.clockTreeEn = true; VREF.advClockConfigEnable = true; VREF.advClkSrc = "DL_VREF_CLOCK_BUSCLK"; VREF.basicVrefPins = "VREF+-"; VREF.vrefPosPinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric1"; VREF.vrefPosPinConfig.enableConfig = true; VREF.peripheral.$assign = "VREF"; VREF.peripheral.vrefPosPin.$assign = "PA23"; VREF.peripheral.vrefNegPin.$assign = "PA21"; VREF.vrefNegPinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric2"; VREF.vrefNegPinConfig.enableConfig = 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. */ Board.peripheral.$suggestSolution = "DEBUGSS"; Board.peripheral.swclkPin.$suggestSolution = "PA20"; Board.peripheral.swdioPin.$suggestSolution = "PA19";