main_target.syscfg 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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 "MSPM0L130X" --part "Default" --package "VSSOP-20(DGS20)" --product "mspm0_sdk@2.05.00.05"
  5. * @v2CliArgs --device "MSPM0L1304" --package "VSSOP-20(DGS20)" --product "mspm0_sdk@2.05.00.05"
  6. * @versions {"tool":"1.22.0+3893"}
  7. */
  8. /**
  9. * Import the modules used in this configuration.
  10. */
  11. const ADC12 = scripting.addModule("/ti/driverlib/ADC12", {}, false);
  12. const ADC121 = ADC12.addInstance();
  13. const Board = scripting.addModule("/ti/driverlib/Board");
  14. const COMP = scripting.addModule("/ti/driverlib/COMP", {}, false);
  15. const COMP1 = COMP.addInstance();
  16. const GPIO = scripting.addModule("/ti/driverlib/GPIO", {}, false);
  17. const GPIO1 = GPIO.addInstance();
  18. const I2C = scripting.addModule("/ti/driverlib/I2C", {}, false);
  19. const I2C1 = I2C.addInstance();
  20. const OPA = scripting.addModule("/ti/driverlib/OPA", {}, false);
  21. const OPA1 = OPA.addInstance();
  22. const OPA2 = OPA.addInstance();
  23. const PWM = scripting.addModule("/ti/driverlib/PWM", {}, false);
  24. const PWM1 = PWM.addInstance();
  25. const SYSCTL = scripting.addModule("/ti/driverlib/SYSCTL");
  26. const VREF = scripting.addModule("/ti/driverlib/VREF");
  27. const ProjectConfig = scripting.addModule("/ti/project_config/ProjectConfig");
  28. /**
  29. * Write custom configuration values to the imported modules.
  30. */
  31. ADC121.$name = "ADC12_0";
  32. ADC121.enabledInterrupts = ["DL_ADC12_INTERRUPT_MEM0_RESULT_LOADED"];
  33. ADC121.sampClkDiv = "DL_ADC12_CLOCK_DIVIDE_8";
  34. ADC121.powerDownMode = "DL_ADC12_POWER_DOWN_MODE_MANUAL";
  35. ADC121.sampleTime0 = "125 us";
  36. ADC121.adcMem0vref = "VREF";
  37. ADC121.peripheral.$assign = "ADC0";
  38. ADC121.adcPin0Config.$name = "ti_driverlib_gpio_GPIOPinGeneric4";
  39. Board.configureVDDA = true;
  40. Board.peripheral.$assign = "DEBUGSS";
  41. Board.peripheral.swclkPin.$assign = "PA20";
  42. Board.peripheral.swdioPin.$assign = "PA19";
  43. COMP1.$name = "COMP_0";
  44. COMP1.controlSelect = "DL_COMP_DAC_CONTROL_SW";
  45. COMP1.vSource = "DL_COMP_REF_SOURCE_VDDA_DAC";
  46. GPIO1.$name = "ADDR";
  47. GPIO1.associatedPins.create(2);
  48. GPIO1.associatedPins[0].$name = "A0";
  49. GPIO1.associatedPins[0].direction = "INPUT";
  50. GPIO1.associatedPins[0].pin.$assign = "PA4";
  51. GPIO1.associatedPins[1].$name = "A1";
  52. GPIO1.associatedPins[1].direction = "INPUT";
  53. GPIO1.associatedPins[1].pin.$assign = "PA11";
  54. I2C1.$name = "I2C_target";
  55. I2C1.basicEnableTarget = true;
  56. I2C1.intTarget = ["RXFIFO_TRIGGER","START","STOP","TXFIFO_TRIGGER"];
  57. I2C1.basicTargetAddress = 0x48;
  58. I2C1.enableTimeoutA = true;
  59. I2C1.timeoutACount = 125;
  60. I2C1.enableTimeoutB = true;
  61. I2C1.timeoutBCount = 125;
  62. I2C1.intGeneric = ["TIMEOUT_A","TIMEOUT_B"];
  63. I2C1.peripheral.$assign = "I2C0";
  64. I2C1.peripheral.sdaPin.$assign = "PA0";
  65. I2C1.peripheral.sclPin.$assign = "PA1/NRST";
  66. I2C1.sdaPinConfig.hideOutputInversion = scripting.forceWrite(false);
  67. I2C1.sdaPinConfig.onlyInternalResistor = scripting.forceWrite(false);
  68. I2C1.sdaPinConfig.passedPeripheralType = scripting.forceWrite("Digital");
  69. I2C1.sdaPinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric2";
  70. I2C1.sdaPinConfig.enableConfig = true;
  71. I2C1.sclPinConfig.hideOutputInversion = scripting.forceWrite(false);
  72. I2C1.sclPinConfig.onlyInternalResistor = scripting.forceWrite(false);
  73. I2C1.sclPinConfig.passedPeripheralType = scripting.forceWrite("Digital");
  74. I2C1.sclPinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric3";
  75. I2C1.sclPinConfig.enableConfig = true;
  76. OPA1.$name = "OPA_0";
  77. OPA1.cfg0OutputPin = "ENABLED";
  78. OPA1.cfg0PSELChannel = "DAC8_OUT";
  79. OPA1.cfg0NSELChannel = "RTAP";
  80. OPA1.cfg0MSELChannel = "GND";
  81. OPA1.peripheral.$assign = "OPA0";
  82. OPA1.peripheral.OutPin.$assign = "PA22";
  83. OPA1.OutPinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric0";
  84. OPA2.$name = "OPA_1";
  85. OPA2.cfg0PSELChannel = "IN0_POS";
  86. OPA2.cfg0NSELChannel = "IN1_NEG";
  87. OPA2.cfg0OutputPin = "ENABLED";
  88. OPA2.cfg0MSELChannel = "IN1_NEG";
  89. OPA2.peripheral.$assign = "OPA1";
  90. OPA2.peripheral.In0PosPin.$assign = "PA18";
  91. OPA2.peripheral.In1NegPin.$assign = "PA17/OPA1.IN0-";
  92. OPA2.peripheral.OutPin.$assign = "PA16";
  93. OPA2.In0PosPinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric5";
  94. OPA2.In1NegPinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric6";
  95. OPA2.OutPinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric7";
  96. PWM1.$name = "PWM";
  97. PWM1.ccIndex = [1];
  98. PWM1.timerCount = 320;
  99. PWM1.peripheral.$assign = "TIMG0";
  100. PWM1.peripheral.ccp1Pin.$assign = "PA6";
  101. PWM1.ccp1PinConfig.direction = scripting.forceWrite("OUTPUT");
  102. PWM1.ccp1PinConfig.hideOutputInversion = scripting.forceWrite(false);
  103. PWM1.ccp1PinConfig.onlyInternalResistor = scripting.forceWrite(false);
  104. PWM1.ccp1PinConfig.passedPeripheralType = scripting.forceWrite("Digital");
  105. PWM1.ccp1PinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric1";
  106. PWM1.PWM_CHANNEL_1.$name = "ti_driverlib_pwm_PWMTimerCC0";
  107. PWM1.PWM_CHANNEL_1.invert = true;
  108. SYSCTL.disableNRSTPin = true;
  109. SYSCTL.peripheral.$assign = "SYSCTL";
  110. ProjectConfig.migrationCondition = true;
  111. ProjectConfig.genLibIQ = true;
  112. /**
  113. * Pinmux solution for unlocked pins/peripherals. This ensures that minor changes to the automatic solver in a future
  114. * version of the tool will not impact the pinmux you originally saw. These lines can be completely deleted in order to
  115. * re-solve from scratch.
  116. */
  117. ADC121.peripheral.adcPin0.$suggestSolution = "PA27";
  118. COMP1.peripheral.$suggestSolution = "COMP0";
  119. VREF.peripheral.$suggestSolution = "VREF";