/** * 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 "MSPM0C110X" --part "Default" --package "VSSOP-20(DGS20)" --product "mspm0_sdk@2.03.00.08" * @v2CliArgs --device "MSPM0C1104" --package "VSSOP-20(DGS20)" --product "mspm0_sdk@2.03.00.08" * @versions {"tool":"1.21.0+3721"} */ /** * Import the modules used in this configuration. */ const GPIO = scripting.addModule("/ti/driverlib/GPIO", {}, false); const GPIO1 = GPIO.addInstance(); const GPIO2 = GPIO.addInstance(); const SYSCTL = scripting.addModule("/ti/driverlib/SYSCTL"); /** * Write custom configuration values to the imported modules. */ GPIO1.$name = "GPIO_LEDS"; GPIO1.associatedPins.create(2); GPIO1.associatedPins[0].$name = "USER_LED_1"; GPIO1.associatedPins[0].initialValue = "SET"; GPIO1.associatedPins[0].assignedPin = "22"; GPIO1.associatedPins[1].$name = "USER_TEST"; GPIO1.associatedPins[1].assignedPin = "2"; GPIO1.associatedPins[1].initialValue = "SET"; const Board = scripting.addModule("/ti/driverlib/Board", {}, false); GPIO2.$name = "GPIO_SWITCHES"; GPIO2.associatedPins[0].assignedPort = "PORTA"; GPIO2.associatedPins[0].assignedPin = "16"; GPIO2.associatedPins[0].$name = "USER_SWITCH_1"; GPIO2.associatedPins[0].direction = "INPUT"; 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. */ GPIO1.associatedPins[0].pin.$suggestSolution = "PA22"; GPIO1.associatedPins[1].pin.$suggestSolution = "PA2"; Board.peripheral.$suggestSolution = "DEBUGSS"; Board.peripheral.swclkPin.$suggestSolution = "PA20"; Board.peripheral.swdioPin.$suggestSolution = "PA19"; GPIO2.associatedPins[0].pin.$suggestSolution = "PA16";