main.syscfg 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /**
  2. * These arguments were used when this file was generated. They will be automatically applied on subsequent loads
  3. * via the GUI or CLI. Run CLI with '--help' for additional information on how to override these arguments.
  4. * @cliArgs --device "MSPM0G350X" --part "Default" --package "LQFP-64(PM)" --product "mspm0_sdk@2.03.00.08"
  5. * @v2CliArgs --device "MSPM0G3507" --package "LQFP-64(PM)" --product "mspm0_sdk@2.03.00.08"
  6. * @versions {"tool":"1.22.0+3893"}
  7. */
  8. /**
  9. * Import the modules used in this configuration.
  10. */
  11. const I2C = scripting.addModule("/ti/driverlib/I2C", {}, false);
  12. const I2C1 = I2C.addInstance();
  13. const I2C2 = I2C.addInstance();
  14. const SYSCTL = scripting.addModule("/ti/driverlib/SYSCTL");
  15. const ProjectConfig = scripting.addModule("/ti/project_config/ProjectConfig");
  16. /**
  17. * Write custom configuration values to the imported modules.
  18. */
  19. I2C1.$name = "I2C_0";
  20. I2C1.basicEnableTarget = true;
  21. I2C1.intTarget = ["RXFIFO_TRIGGER","RX_DONE","START","STOP","TXFIFO_TRIGGER","TX_DONE"];
  22. I2C1.sdaPinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric0";
  23. I2C1.sclPinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric1";
  24. const Board = scripting.addModule("/ti/driverlib/Board", {}, false);
  25. I2C2.$name = "I2C_1";
  26. I2C2.basicEnableController = true;
  27. I2C2.intController = ["ARBITRATION_LOST","NACK","RXFIFO_TRIGGER","RX_DONE","TXFIFO_TRIGGER","TX_DONE"];
  28. I2C2.sdaPinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric2";
  29. I2C2.sclPinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric3";
  30. ProjectConfig.deviceSpin = "MSPM0G3507";
  31. /**
  32. * Pinmux solution for unlocked pins/peripherals. This ensures that minor changes to the automatic solver in a future
  33. * version of the tool will not impact the pinmux you originally saw. These lines can be completely deleted in order to
  34. * re-solve from scratch.
  35. */
  36. I2C1.peripheral.$suggestSolution = "I2C1";
  37. I2C1.peripheral.sdaPin.$suggestSolution = "PA10";
  38. I2C1.peripheral.sclPin.$suggestSolution = "PA11";
  39. Board.peripheral.$suggestSolution = "DEBUGSS";
  40. Board.peripheral.swclkPin.$suggestSolution = "PA20";
  41. Board.peripheral.swdioPin.$suggestSolution = "PA19";
  42. I2C2.peripheral.$suggestSolution = "I2C0";
  43. I2C2.peripheral.sdaPin.$suggestSolution = "PA0";
  44. I2C2.peripheral.sclPin.$suggestSolution = "PA1";
  45. SYSCTL.peripheral.$suggestSolution = "SYSCTL";