/** * 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.03.00.08" * @v2CliArgs --device "MSPM0G3507" --package "LQFP-64(PM)" --product "mspm0_sdk@2.03.00.08" * @versions {"tool":"1.22.0+3893"} */ /** * Import the modules used in this configuration. */ const Board = scripting.addModule("/ti/driverlib/Board"); const CRC = scripting.addModule("/ti/driverlib/CRC"); const I2C = scripting.addModule("/ti/driverlib/I2C", {}, false); const I2C1 = I2C.addInstance(); /** * Write custom configuration values to the imported modules. */ CRC.polynomial = "16_POLYNOMIAL"; CRC.seed = 0xFFFF; I2C1.basicEnableController = true; I2C1.advControllerTXFIFOTRIG = "BYTES_1"; I2C1.$name = "I2C"; I2C1.advAnalogGlitchFilter = "DISABLED"; I2C1.intController = ["ARBITRATION_LOST","NACK","RXFIFO_TRIGGER","RX_DONE","TX_DONE"]; I2C1.peripheral.$assign = "I2C1"; I2C1.peripheral.sdaPin.$assign = "PB3"; I2C1.peripheral.sclPin.$assign = "PB2"; I2C1.sdaPinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric0"; I2C1.sdaPinConfig.hideOutputInversion = scripting.forceWrite(false); I2C1.sdaPinConfig.onlyInternalResistor = scripting.forceWrite(false); I2C1.sdaPinConfig.passedPeripheralType = scripting.forceWrite("Digital"); I2C1.sdaPinConfig.enableConfig = true; I2C1.sdaPinConfig.internalResistor = "PULL_UP"; I2C1.sclPinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric1"; I2C1.sclPinConfig.hideOutputInversion = scripting.forceWrite(false); I2C1.sclPinConfig.onlyInternalResistor = scripting.forceWrite(false); I2C1.sclPinConfig.passedPeripheralType = scripting.forceWrite("Digital"); I2C1.sclPinConfig.enableConfig = true; I2C1.sclPinConfig.internalResistor = "PULL_UP"; const SYSCTL = scripting.addModule("/ti/driverlib/SYSCTL", {}, false); SYSCTL.forceDefaultClkConfig = true; SYSCTL.clockTreeEn = 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";