/** * 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 "MSPM0L110X" --part "Default" --package "VQFN-32(RHB)" --product "mspm0_sdk@2.08.00.02" * @v2CliArgs --device "MSPM0L1106" --package "VQFN-32(RHB)" --product "mspm0_sdk@2.08.00.02" * @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 GPIO = scripting.addModule("/ti/driverlib/GPIO", {}, false); const GPIO1 = GPIO.addInstance(); const I2C = scripting.addModule("/ti/driverlib/I2C", {}, false); const I2C1 = I2C.addInstance(); const SYSCTL = scripting.addModule("/ti/driverlib/SYSCTL"); const TIMER = scripting.addModule("/ti/driverlib/TIMER", {}, false); const TIMER1 = TIMER.addInstance(); const TIMER2 = TIMER.addInstance(); const TIMER3 = TIMER.addInstance(); const UART = scripting.addModule("/ti/driverlib/UART", {}, false); const UART1 = UART.addInstance(); const VREF = scripting.addModule("/ti/driverlib/VREF"); /** * Write custom configuration values to the imported modules. */ const gate6 = system.clockTree["MFCLKGATE"]; gate6.enable = true; const oscillator2 = system.clockTree["SYSOSC"]; oscillator2.frequencySelect = 4; ADC121.$name = "ADC12_0"; ADC121.startAdd = 1; ADC121.enabledADCMems = [0,1]; ADC121.adcMem0chansel = "DL_ADC12_INPUT_CHAN_2"; ADC121.adcMem1chansel = "DL_ADC12_INPUT_CHAN_8"; ADC121.adcMem0vref = "VREF"; ADC121.adcMem1vref = "VREF"; ADC121.enabledInterrupts = ["DL_ADC12_INTERRUPT_MEM0_RESULT_LOADED","DL_ADC12_INTERRUPT_MEM1_RESULT_LOADED"]; ADC121.interruptPriority = "0"; ADC121.sampClkSrc = "DL_ADC12_CLOCK_ULPCLK"; ADC121.sampleTime0 = "12 us"; ADC121.adcPin2Config.$name = "ti_driverlib_gpio_GPIOPinGeneric0"; ADC121.adcPin8Config.$name = "ti_driverlib_gpio_GPIOPinGeneric1"; const Board = scripting.addModule("/ti/driverlib/Board", {}, false); Board.configureUnused = true; GPIO1.$name = "GPIO_LEDS"; GPIO1.associatedPins.create(4); GPIO1.associatedPins[0].assignedPort = "PORTA"; GPIO1.associatedPins[0].initialValue = "SET"; GPIO1.associatedPins[0].$name = "LD1_LED1"; GPIO1.associatedPins[0].assignedPin = "1"; GPIO1.associatedPins[0].pin.$assign = "PA1"; GPIO1.associatedPins[1].assignedPort = "PORTA"; GPIO1.associatedPins[1].initialValue = "SET"; GPIO1.associatedPins[1].$name = "LD1_LED2"; GPIO1.associatedPins[1].assignedPin = "4"; GPIO1.associatedPins[1].pin.$assign = "PA4"; GPIO1.associatedPins[2].$name = "USER_LED_1"; GPIO1.associatedPins[2].assignedPort = "PORTA"; GPIO1.associatedPins[2].assignedPin = "26"; GPIO1.associatedPins[3].$name = "RI_LED"; GPIO1.associatedPins[3].assignedPort = "PORTA"; GPIO1.associatedPins[3].assignedPin = "5"; I2C1.$name = "I2C_0"; I2C1.basicEnableController = true; I2C1.peripheral.$assign = "I2C0"; I2C1.peripheral.sdaPin.$assign = "PA10"; I2C1.peripheral.sclPin.$assign = "PA11"; I2C1.sdaPinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric4"; I2C1.sdaPinConfig.internalResistor = "PULL_UP"; I2C1.sclPinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric5"; I2C1.sclPinConfig.internalResistor = "PULL_UP"; SYSCTL.clockTreeEn = true; SYSCTL.powerPolicy = "STANDBY1"; TIMER1.$name = "TIMER_0"; TIMER1.timerMode = "PERIODIC"; TIMER1.interrupts = ["ZERO"]; TIMER1.timerClkSrc = "LFCLK"; TIMER1.timerClkPrescale = 33; TIMER1.timerPeriod = "3 s"; TIMER1.interruptPriority = "1"; TIMER1.peripheral.$assign = "TIMG0"; TIMER2.$name = "TIMER_1"; TIMER2.timerClkDiv = 8; TIMER2.timerClkPrescale = 32; TIMER2.timerPeriod = "2 s"; TIMER2.interrupts = ["ZERO"]; TIMER2.timerMode = "PERIODIC"; TIMER2.peripheral.$assign = "TIMG1"; TIMER3.$name = "TIMER_2"; TIMER3.timerClkDiv = 8; TIMER3.timerClkPrescale = 4; TIMER3.timerPeriod = "52 us"; TIMER3.timerClkSrc = "MFCLK"; TIMER3.timerMode = "PERIODIC"; TIMER3.interrupts = ["ZERO"]; UART1.$name = "UART_0"; UART1.uartClkSrc = "MFCLK"; UART1.enableFIFO = true; UART1.peripheral.rxPin.$assign = "PA9"; UART1.peripheral.txPin.$assign = "PA8"; UART1.txPinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric2"; UART1.rxPinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric3"; UART1.rxPinConfig.enableConfig = true; UART1.rxPinConfig.internalResistor = "PULL_UP"; VREF.basicIntVolt = "DL_VREF_BUFCONFIG_OUTPUT_2_5V"; VREF.checkVREFReady = true; VREF.advClockConfigEnable = true; VREF.advClkSrc = "DL_VREF_CLOCK_BUSCLK"; /** * 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"; ADC121.peripheral.adcPin2.$suggestSolution = "PA25"; ADC121.peripheral.adcPin8.$suggestSolution = "PA16"; Board.peripheral.$suggestSolution = "DEBUGSS"; Board.peripheral.swclkPin.$suggestSolution = "PA20"; Board.peripheral.swdioPin.$suggestSolution = "PA19"; GPIO1.associatedPins[2].pin.$suggestSolution = "PA26"; GPIO1.associatedPins[3].pin.$suggestSolution = "PA5"; TIMER3.peripheral.$suggestSolution = "TIMG2"; UART1.peripheral.$suggestSolution = "UART0"; VREF.peripheral.$suggestSolution = "VREF";