/** * 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.07.00.05" * @v2CliArgs --device "MSPM0G3507" --package "LQFP-48(PT)" --product "mspm0_sdk@2.07.00.05" * @versions {"tool":"1.25.0+4268"} */ /** * Import the modules used in this configuration. */ 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 UART = scripting.addModule("/ti/driverlib/UART", {}, false); const UART1 = UART.addInstance(); /** * Write custom configuration values to the imported modules. */ const gate7 = system.clockTree["MFCLKGATE"]; gate7.enable = true; GPIO1.$name = "LED"; GPIO1.associatedPins[0].$name = "PA0"; GPIO1.associatedPins[0].pin.$assign = "PA0"; const Board = scripting.addModule("/ti/driverlib/Board", {}, false); Board.peripheral.$assign = "DEBUGSS"; Board.peripheral.swclkPin.$assign = "PA20"; 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); I2C1.sdaPinConfig.onlyInternalResistor = scripting.forceWrite(false); I2C1.sdaPinConfig.passedPeripheralType = scripting.forceWrite("Digital"); I2C1.sdaPinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric2"; I2C1.sclPinConfig.hideOutputInversion = scripting.forceWrite(false); I2C1.sclPinConfig.onlyInternalResistor = scripting.forceWrite(false); I2C1.sclPinConfig.passedPeripheralType = scripting.forceWrite("Digital"); I2C1.sclPinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric3"; SYSCTL.forceDefaultClkConfig = true; SYSCTL.peripheral.$assign = "SYSCTL"; UART1.$name = "UART_0"; UART1.rxFifoThreshold = "DL_UART_RX_FIFO_LEVEL_ONE_ENTRY"; UART1.targetBaudRate = 115200; UART1.uartClkDiv = "8"; UART1.enableFIFO = true; UART1.txFifoThreshold = "DL_UART_TX_FIFO_LEVEL_ONE_ENTRY"; UART1.enabledDMATXTriggers = "DL_UART_DMA_INTERRUPT_TX"; UART1.peripheral.$assign = "UART0"; UART1.peripheral.rxPin.$assign = "PA11"; UART1.peripheral.txPin.$assign = "PA10"; UART1.txPinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric0"; UART1.rxPinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric1"; UART1.DMA_CHANNEL_TX.$name = "DMA_CH0"; UART1.DMA_CHANNEL_TX.addressMode = "b2f"; UART1.DMA_CHANNEL_TX.srcLength = "BYTE"; UART1.DMA_CHANNEL_TX.dstLength = "BYTE"; UART1.DMA_CHANNEL_TX.peripheral.$assign = "DMA_CH0"; const ProjectConfig = scripting.addModule("/ti/project_config/ProjectConfig", {}, false); 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. */ I2C1.peripheral.$suggestSolution = "I2C1";