chg-stn-motherboard-ti-mcu/mspm0g3507_mcal.syscfg

116 lines
4.7 KiB
Plaintext

/**
* These arguments were used when this file was generated. They will be automatically applied on subsequent loads
* via the GUI or CLI. Run CLI with '--help' for additional information on how to override these arguments.
* @cliArgs --device "MSPM0G350X" --part "Default" --package "VQFN-48(RGZ)" --product "mspm0_sdk@2.02.00.05"
* @v2CliArgs --device "MSPM0G3507" --package "VQFN-48(RGZ)" --product "mspm0_sdk@2.02.00.05"
* @versions {"tool":"1.21.0+3721"}
*/
/**
* Import the modules used in this configuration.
*/
const CAPTURE = scripting.addModule("/ti/driverlib/CAPTURE", {}, false);
const CAPTURE1 = CAPTURE.addInstance();
const GPIO = scripting.addModule("/ti/driverlib/GPIO", {}, false);
const GPIO1 = GPIO.addInstance();
const MCAN = scripting.addModule("/ti/driverlib/MCAN", {}, false);
const MCAN1 = MCAN.addInstance();
const SYSCTL = scripting.addModule("/ti/driverlib/SYSCTL");
const TIMER = scripting.addModule("/ti/driverlib/TIMER", {}, false);
const TIMER1 = TIMER.addInstance();
const TIMER2 = TIMER.addInstance();
const UART = scripting.addModule("/ti/driverlib/UART", {}, false);
const UART1 = UART.addInstance();
const ProjectConfig = scripting.addModule("/ti/project_config/ProjectConfig");
/**
* Write custom configuration values to the imported modules.
*/
const mux4 = system.clockTree["EXHFMUX"];
mux4.inputSelect = "EXHFMUX_XTAL";
const mux8 = system.clockTree["HSCLKMUX"];
mux8.inputSelect = "HSCLKMUX_SYSPLL0";
const mux12 = system.clockTree["SYSPLLMUX"];
mux12.inputSelect = "zSYSPLLMUX_HFCLK";
const pinFunction3 = system.clockTree["HFCLKEXT"];
pinFunction3.inputFreq = 24;
const pinFunction4 = system.clockTree["HFXT"];
pinFunction4.inputFreq = 24;
pinFunction4.HFXTStartup = 10;
pinFunction4.HFCLKMonitor = true;
pinFunction4.enable = true;
CAPTURE1.$name = "CAPTURE_0";
CAPTURE1.ccp0PinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric4";
const Board = scripting.addModule("/ti/driverlib/Board", {}, false);
Board.peripheral.$assign = "DEBUGSS";
Board.peripheral.swclkPin.$assign = "PA20";
Board.peripheral.swdioPin.$assign = "PA19";
GPIO1.$name = "GPIO_GRP_0";
GPIO1.port = "PORTB";
GPIO1.portSegment = "Upper";
GPIO1.associatedPins[0].$name = "PIN_0";
GPIO1.associatedPins[0].direction = "INPUT";
GPIO1.associatedPins[0].pin.$assign = "PB17";
MCAN1.$name = "MCAN0";
MCAN1.fdMode = false;
MCAN1.peripheral.rxPin.$assign = "PA27";
MCAN1.peripheral.txPin.$assign = "PA26";
MCAN1.txPinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric0";
MCAN1.rxPinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric1";
SYSCTL.forceDefaultClkConfig = true;
SYSCTL.clockTreeEn = true;
SYSCTL.HFCLK_Freq = 24000000;
SYSCTL.HFCLKSource = "HFXT";
SYSCTL.validateClkStatus = true;
SYSCTL.HFXTStartup = 10;
SYSCTL.HFCLKMonitor = true;
SYSCTL.CANCLKSource = "SYSPLLCLK1";
TIMER1.$name = "TIMER_0";
TIMER1.timerClkSrc = "LFCLK";
TIMER1.timerClkPrescale = 33;
TIMER1.timerMode = "PERIODIC";
TIMER1.interrupts = ["ZERO"];
TIMER1.timerPeriod = "500 ms";
TIMER1.peripheral.$assign = "TIMG0";
TIMER2.$name = "TIMER_1";
TIMER2.timerMode = "PERIODIC";
TIMER2.interrupts = ["ZERO"];
TIMER2.timerPeriod = "100 ms";
TIMER2.interruptPriority = "1";
TIMER2.timerClkSrc = "LFCLK";
TIMER2.timerClkDiv = 3;
UART1.$name = "UART_0";
UART1.targetBaudRate = 115200;
UART1.peripheral.rxPin.$assign = "PB16";
UART1.peripheral.txPin.$assign = "PB15";
UART1.txPinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric2";
UART1.rxPinConfig.$name = "ti_driverlib_gpio_GPIOPinGeneric3";
ProjectConfig.deviceSpin = "MSPM0G3507";
/**
* Pinmux solution for unlocked pins/peripherals. This ensures that minor changes to the automatic solver in a future
* version of the tool will not impact the pinmux you originally saw. These lines can be completely deleted in order to
* re-solve from scratch.
*/
pinFunction4.peripheral.$suggestSolution = "SYSCTL";
pinFunction4.peripheral.hfxInPin.$suggestSolution = "PA5";
pinFunction4.peripheral.hfxOutPin.$suggestSolution = "PA6";
CAPTURE1.peripheral.$suggestSolution = "TIMA1";
CAPTURE1.peripheral.ccp0Pin.$suggestSolution = "PA10";
MCAN1.peripheral.$suggestSolution = "CANFD0";
TIMER2.peripheral.$suggestSolution = "TIMA0";
UART1.peripheral.$suggestSolution = "UART2";