main_target.syscfg 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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 PWM = scripting.addModule("/ti/driverlib/PWM", {}, false);
  23. const PWM1 = PWM.addInstance();
  24. const SYSCTL = scripting.addModule("/ti/driverlib/SYSCTL");
  25. const VREF = scripting.addModule("/ti/driverlib/VREF");
  26. const ProjectConfig = scripting.addModule("/ti/project_config/ProjectConfig");
  27. /**
  28. * Write custom configuration values to the imported modules.
  29. */
  30. ADC121.$name = "ADC12_0";
  31. ADC121.enabledInterrupts = ["DL_ADC12_INTERRUPT_MEM0_RESULT_LOADED"];
  32. ADC121.sampClkDiv = "DL_ADC12_CLOCK_DIVIDE_8";
  33. ADC121.powerDownMode = "DL_ADC12_POWER_DOWN_MODE_MANUAL";
  34. ADC121.sampleTime0 = "125 us";
  35. ADC121.peripheral.$assign = "ADC0";
  36. ADC121.adcPin0Config.$name = "ti_driverlib_gpio_GPIOPinGeneric4";
  37. Board.configureVDDA = true;
  38. Board.peripheral.$assign = "DEBUGSS";
  39. Board.peripheral.swclkPin.$assign = "PA20";
  40. Board.peripheral.swdioPin.$assign = "PA19";
  41. COMP1.$name = "COMP_0";
  42. COMP1.controlSelect = "DL_COMP_DAC_CONTROL_SW";
  43. COMP1.vSource = "DL_COMP_REF_SOURCE_VDDA_DAC";
  44. GPIO1.$name = "ADDR";
  45. GPIO1.associatedPins.create(2);
  46. GPIO1.associatedPins[0].$name = "A0";
  47. GPIO1.associatedPins[0].direction = "INPUT";
  48. GPIO1.associatedPins[0].pin.$assign = "PA4";
  49. GPIO1.associatedPins[1].$name = "A1";
  50. GPIO1.associatedPins[1].direction = "INPUT";
  51. GPIO1.associatedPins[1].pin.$assign = "PA11";
  52. I2C1.$name = "I2C_target";
  53. I2C1.basicEnableTarget = true;
  54. I2C1.intTarget = ["RXFIFO_TRIGGER","START","STOP","TXFIFO_TRIGGER"];
  55. I2C1.basicTargetAddress = 0x48;
  56. I2C1.enableTimeoutA = true;
  57. I2C1.timeoutACount = 125;
  58. I2C1.enableTimeoutB = true;
  59. I2C1.timeoutBCount = 125;
  60. I2C1.intGeneric = ["TIMEOUT_A","TIMEOUT_B"];
  61. I2C1.peripheral.$assign = "I2C0";
  62. I2C1.peripheral.sdaPin.$assign = "PA0";
  63. I2C1.peripheral.sclPin.$assign = "PA1/NRST";
  64. I2C1.sdaPinConfig.hideOutputInversion = scripting.forceWrite(false);
  65. I2C1.sdaPinConfig.onlyInternalResistor = scripting.forceWrite(false);
  66. I2C1.sdaPinConfig.passedPeripheralType = scripting.forceWrite("Digital");
  67. I2C1.sdaPinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric2";
  68. I2C1.sdaPinConfig.enableConfig = true;
  69. I2C1.sclPinConfig.hideOutputInversion = scripting.forceWrite(false);
  70. I2C1.sclPinConfig.onlyInternalResistor = scripting.forceWrite(false);
  71. I2C1.sclPinConfig.passedPeripheralType = scripting.forceWrite("Digital");
  72. I2C1.sclPinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric3";
  73. I2C1.sclPinConfig.enableConfig = true;
  74. OPA1.$name = "OPA_0";
  75. OPA1.cfg0Gain = "N1_P2";
  76. OPA1.cfg0OutputPin = "ENABLED";
  77. OPA1.cfg0PSELChannel = "DAC8_OUT";
  78. OPA1.cfg0NSELChannel = "RTAP";
  79. OPA1.cfg0MSELChannel = "GND";
  80. OPA1.peripheral.$assign = "OPA0";
  81. OPA1.peripheral.OutPin.$assign = "PA22";
  82. OPA1.OutPinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric0";
  83. PWM1.$name = "PWM";
  84. PWM1.ccIndex = [1];
  85. PWM1.timerCount = 320;
  86. PWM1.peripheral.$assign = "TIMG0";
  87. PWM1.peripheral.ccp1Pin.$assign = "PA6";
  88. PWM1.ccp1PinConfig.direction = scripting.forceWrite("OUTPUT");
  89. PWM1.ccp1PinConfig.hideOutputInversion = scripting.forceWrite(false);
  90. PWM1.ccp1PinConfig.onlyInternalResistor = scripting.forceWrite(false);
  91. PWM1.ccp1PinConfig.passedPeripheralType = scripting.forceWrite("Digital");
  92. PWM1.ccp1PinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric1";
  93. PWM1.PWM_CHANNEL_1.$name = "ti_driverlib_pwm_PWMTimerCC0";
  94. PWM1.PWM_CHANNEL_1.ccValue = 320;
  95. SYSCTL.disableNRSTPin = true;
  96. SYSCTL.peripheral.$assign = "SYSCTL";
  97. ProjectConfig.migrationCondition = true;
  98. ProjectConfig.genLibIQ = true;
  99. /**
  100. * Pinmux solution for unlocked pins/peripherals. This ensures that minor changes to the automatic solver in a future
  101. * version of the tool will not impact the pinmux you originally saw. These lines can be completely deleted in order to
  102. * re-solve from scratch.
  103. */
  104. ADC121.peripheral.adcPin0.$suggestSolution = "PA27";
  105. COMP1.peripheral.$suggestSolution = "COMP0";
  106. VREF.peripheral.$suggestSolution = "VREF";