/** * 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.25.0+4268"} */ /** * Import the modules used in this configuration. */ const ADC12 = scripting.addModule("/ti/driverlib/ADC12", {}, false); const ADC121 = ADC12.addInstance(); const SYSCTL = scripting.addModule("/ti/driverlib/SYSCTL"); const TIMER = scripting.addModule("/ti/driverlib/TIMER", {}, false); const TIMER1 = TIMER.addInstance(); /** * Write custom configuration values to the imported modules. */ ADC121.$name = "ADC12_0"; ADC121.trigSrc = "DL_ADC12_TRIG_SRC_EVENT"; ADC121.adcMem2chansel = "DL_ADC12_INPUT_CHAN_1"; ADC121.adcMem3chansel = "DL_ADC12_INPUT_CHAN_1"; ADC121.adcMem4chansel = "DL_ADC12_INPUT_CHAN_1"; ADC121.adcMem5chansel = "DL_ADC12_INPUT_CHAN_1"; ADC121.adcMem6chansel = "DL_ADC12_INPUT_CHAN_1"; ADC121.adcMem7chansel = "DL_ADC12_INPUT_CHAN_1"; ADC121.adcMem8chansel = "DL_ADC12_INPUT_CHAN_2"; ADC121.adcMem9chansel = "DL_ADC12_INPUT_CHAN_2"; ADC121.adcMem9trig = "DL_ADC12_TRIGGER_MODE_TRIGGER_NEXT"; ADC121.enabledInterrupts = ["DL_ADC12_INTERRUPT_DMA_DONE"]; ADC121.configureDMA = true; ADC121.sampCnt = 1; ADC121.samplingOperationMode = "sequence"; ADC121.endAdd = 9; ADC121.repeatMode = true; ADC121.enableFIFO = true; ADC121.sampleTime0 = "90 ns"; ADC121.enabledDMATriggers = ["DL_ADC12_DMA_MEM11_RESULT_LOADED","DL_ADC12_DMA_MEM1_RESULT_LOADED","DL_ADC12_DMA_MEM3_RESULT_LOADED","DL_ADC12_DMA_MEM5_RESULT_LOADED","DL_ADC12_DMA_MEM7_RESULT_LOADED","DL_ADC12_DMA_MEM9_RESULT_LOADED"]; ADC121.subChanID = 1; ADC121.powerDownMode = "DL_ADC12_POWER_DOWN_MODE_MANUAL"; ADC121.sampleTime1 = "90 ns"; ADC121.adcPin0Config.$name = "ti_driverlib_gpio_GPIOPinGeneric1"; ADC121.DMA_CHANNEL.$name = "DMA_CH0"; ADC121.DMA_CHANNEL.addressMode = "f2b"; ADC121.DMA_CHANNEL.peripheral.$assign = "DMA_CH0"; ADC121.adcPin1Config.$name = "ti_driverlib_gpio_GPIOPinGeneric2"; ADC121.adcPin2Config.$name = "ti_driverlib_gpio_GPIOPinGeneric3"; ADC121.peripheral.adcPin0.$assign = "PA27"; ADC121.peripheral.adcPin1.$assign = "PA26"; ADC121.peripheral.adcPin2.$assign = "PA25"; const Board = scripting.addModule("/ti/driverlib/Board", {}, false); SYSCTL.forceDefaultClkConfig = true; TIMER1.$name = "TIMER_0"; TIMER1.timerMode = "PERIODIC"; TIMER1.timerPeriod = "8 us"; TIMER1.event1PublisherChannel = 1; TIMER1.event1ControllerInterruptEn = ["ZERO_EVENT"]; /** * 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 = "ADC0"; Board.peripheral.$suggestSolution = "DEBUGSS"; Board.peripheral.swclkPin.$suggestSolution = "PA20"; Board.peripheral.swdioPin.$suggestSolution = "PA19"; SYSCTL.peripheral.$suggestSolution = "SYSCTL"; TIMER1.peripheral.$suggestSolution = "TIMA0";