main.syscfg 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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 GPIO = scripting.addModule("/ti/driverlib/GPIO", {}, false);
  12. const GPIO1 = GPIO.addInstance();
  13. const GPIO2 = GPIO.addInstance();
  14. const I2C = scripting.addModule("/ti/driverlib/I2C", {}, false);
  15. const I2C1 = I2C.addInstance();
  16. const I2C2 = I2C.addInstance();
  17. const SYSCTL = scripting.addModule("/ti/driverlib/SYSCTL");
  18. const ProjectConfig = scripting.addModule("/ti/project_config/ProjectConfig");
  19. /**
  20. * Write custom configuration values to the imported modules.
  21. */
  22. GPIO1.$name = "GPIO_Battery_Charging";
  23. GPIO1.port = "PORTB";
  24. GPIO1.associatedPins.create(2);
  25. GPIO1.associatedPins[0].$name = "PIN_PB0";
  26. GPIO1.associatedPins[0].pin.$assign = "PB0";
  27. GPIO1.associatedPins[1].$name = "PIN_PB4";
  28. GPIO1.associatedPins[1].pin.$assign = "PB4";
  29. const Board = scripting.addModule("/ti/driverlib/Board", {}, false);
  30. GPIO2.$name = "GPIO_Battery_Discharging";
  31. GPIO2.port = "PORTB";
  32. GPIO2.associatedPins.create(2);
  33. GPIO2.associatedPins[0].$name = "PIN_PB8";
  34. GPIO2.associatedPins[0].pin.$assign = "PB8";
  35. GPIO2.associatedPins[1].$name = "PIN_PB12";
  36. GPIO2.associatedPins[1].pin.$assign = "PB12";
  37. I2C1.$name = "I2C_0";
  38. I2C1.basicEnableTarget = true;
  39. I2C1.intTarget = ["RXFIFO_TRIGGER","RX_DONE","START","STOP","TXFIFO_TRIGGER","TX_DONE"];
  40. I2C1.sdaPinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric0";
  41. I2C1.sclPinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric1";
  42. I2C2.$name = "I2C_1";
  43. I2C2.basicEnableController = true;
  44. I2C2.intController = ["ARBITRATION_LOST","NACK","RXFIFO_TRIGGER","RX_DONE","TXFIFO_TRIGGER","TX_DONE"];
  45. I2C2.sdaPinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric2";
  46. I2C2.sclPinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric3";
  47. ProjectConfig.deviceSpin = "MSPM0G3507";
  48. /**
  49. * Pinmux solution for unlocked pins/peripherals. This ensures that minor changes to the automatic solver in a future
  50. * version of the tool will not impact the pinmux you originally saw. These lines can be completely deleted in order to
  51. * re-solve from scratch.
  52. */
  53. Board.peripheral.$suggestSolution = "DEBUGSS";
  54. Board.peripheral.swclkPin.$suggestSolution = "PA20";
  55. Board.peripheral.swdioPin.$suggestSolution = "PA19";
  56. I2C1.peripheral.$suggestSolution = "I2C1";
  57. I2C1.peripheral.sdaPin.$suggestSolution = "PA10";
  58. I2C1.peripheral.sclPin.$suggestSolution = "PA11";
  59. I2C2.peripheral.$suggestSolution = "I2C0";
  60. I2C2.peripheral.sdaPin.$suggestSolution = "PA0";
  61. I2C2.peripheral.sclPin.$suggestSolution = "PA1";
  62. SYSCTL.peripheral.$suggestSolution = "SYSCTL";