main_target.syscfg 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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.adcMem0avgen = true;
  36. ADC121.hwNumerator = "DL_ADC12_HW_AVG_NUM_ACC_32";
  37. ADC121.hwDenominator = "DL_ADC12_HW_AVG_DEN_DIV_BY_32";
  38. ADC121.adcMem1vref = "VREF";
  39. ADC121.peripheral.$assign = "ADC0";
  40. ADC121.adcPin0Config.$name = "ti_driverlib_gpio_GPIOPinGeneric4";
  41. Board.configureVDDA = true;
  42. Board.peripheral.$assign = "DEBUGSS";
  43. Board.peripheral.swclkPin.$assign = "PA20";
  44. Board.peripheral.swdioPin.$assign = "PA19";
  45. COMP1.$name = "COMP_0";
  46. COMP1.vSource = "DL_COMP_REF_SOURCE_VDDA_DAC";
  47. COMP1.controlSelect = "DL_COMP_DAC_CONTROL_SW";
  48. COMP1.hysteresis = "DL_COMP_HYSTERESIS_10";
  49. COMP1.terminalSelect = "DL_COMP_REF_TERMINAL_SELECT_NEG";
  50. GPIO1.$name = "ADDR";
  51. GPIO1.associatedPins.create(3);
  52. GPIO1.associatedPins[0].$name = "A0";
  53. GPIO1.associatedPins[0].direction = "INPUT";
  54. GPIO1.associatedPins[0].polarity = "RISE_FALL";
  55. GPIO1.associatedPins[0].interruptEn = true;
  56. GPIO1.associatedPins[0].pin.$assign = "PA4";
  57. GPIO1.associatedPins[1].$name = "A1";
  58. GPIO1.associatedPins[1].direction = "INPUT";
  59. GPIO1.associatedPins[1].interruptEn = true;
  60. GPIO1.associatedPins[1].polarity = "RISE_FALL";
  61. GPIO1.associatedPins[1].pin.$assign = "PA11";
  62. GPIO1.associatedPins[2].$name = "A2";
  63. GPIO1.associatedPins[2].direction = "INPUT";
  64. GPIO1.associatedPins[2].pin.$assign = "PA16";
  65. I2C1.$name = "I2C_target";
  66. I2C1.basicEnableTarget = true;
  67. I2C1.intTarget = ["RXFIFO_TRIGGER","START","STOP","TXFIFO_TRIGGER"];
  68. I2C1.basicTargetAddress = 0x48;
  69. I2C1.enableTimeoutA = true;
  70. I2C1.timeoutACount = 125;
  71. I2C1.enableTimeoutB = true;
  72. I2C1.timeoutBCount = 125;
  73. I2C1.intGeneric = ["TIMEOUT_A","TIMEOUT_B"];
  74. I2C1.peripheral.$assign = "I2C0";
  75. I2C1.peripheral.sdaPin.$assign = "PA0";
  76. I2C1.peripheral.sclPin.$assign = "PA1/NRST";
  77. I2C1.sdaPinConfig.hideOutputInversion = scripting.forceWrite(false);
  78. I2C1.sdaPinConfig.onlyInternalResistor = scripting.forceWrite(false);
  79. I2C1.sdaPinConfig.passedPeripheralType = scripting.forceWrite("Digital");
  80. I2C1.sdaPinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric2";
  81. I2C1.sdaPinConfig.enableConfig = true;
  82. I2C1.sclPinConfig.hideOutputInversion = scripting.forceWrite(false);
  83. I2C1.sclPinConfig.onlyInternalResistor = scripting.forceWrite(false);
  84. I2C1.sclPinConfig.passedPeripheralType = scripting.forceWrite("Digital");
  85. I2C1.sclPinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric3";
  86. I2C1.sclPinConfig.enableConfig = true;
  87. OPA1.$name = "OPA_0";
  88. OPA1.cfg0OutputPin = "ENABLED";
  89. OPA1.cfg0PSELChannel = "DAC8_OUT";
  90. OPA1.cfg0NSELChannel = "RTOP";
  91. OPA1.peripheral.$assign = "OPA0";
  92. OPA1.peripheral.OutPin.$assign = "PA22";
  93. OPA1.OutPinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric0";
  94. PWM1.$name = "PWM";
  95. PWM1.ccIndex = [1];
  96. PWM1.timerCount = 320;
  97. PWM1.peripheral.$assign = "TIMG0";
  98. PWM1.peripheral.ccp1Pin.$assign = "PA6";
  99. PWM1.ccp1PinConfig.direction = scripting.forceWrite("OUTPUT");
  100. PWM1.ccp1PinConfig.hideOutputInversion = scripting.forceWrite(false);
  101. PWM1.ccp1PinConfig.onlyInternalResistor = scripting.forceWrite(false);
  102. PWM1.ccp1PinConfig.passedPeripheralType = scripting.forceWrite("Digital");
  103. PWM1.ccp1PinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric1";
  104. PWM1.PWM_CHANNEL_1.$name = "ti_driverlib_pwm_PWMTimerCC0";
  105. PWM1.PWM_CHANNEL_1.invert = true;
  106. SYSCTL.disableNRSTPin = true;
  107. SYSCTL.peripheral.$assign = "SYSCTL";
  108. VREF.basicIntVolt = "DL_VREF_BUFCONFIG_OUTPUT_2_5V";
  109. ProjectConfig.migrationCondition = true;
  110. ProjectConfig.genLibIQ = true;
  111. /**
  112. * Pinmux solution for unlocked pins/peripherals. This ensures that minor changes to the automatic solver in a future
  113. * version of the tool will not impact the pinmux you originally saw. These lines can be completely deleted in order to
  114. * re-solve from scratch.
  115. */
  116. ADC121.peripheral.adcPin0.$suggestSolution = "PA27";
  117. COMP1.peripheral.$suggestSolution = "COMP0";
  118. VREF.peripheral.$suggestSolution = "VREF";