/** * 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 "F2837xD" --part "F2837xD_176PTP" --package "F2837xD_176PTP" --context "CPU1" --product "C2000WARE@6.00.01.00" * @v2CliArgs --device "TMS320F28379D" --package "176PTP" --context "CPU1" --product "C2000WARE@6.00.01.00" * @versions {"tool":"1.27.0+4565"} */ /** * Import the modules used in this configuration. */ const cputimer = scripting.addModule("/driverlib/cputimer.js", {}, false); const cputimer1 = cputimer.addInstance(); const gpio = scripting.addModule("/driverlib/gpio.js", {}, false); const gpio1 = gpio.addInstance(); const sci = scripting.addModule("/driverlib/sci.js", {}, false); const sci1 = sci.addInstance(); /** * Write custom configuration values to the imported modules. */ const mux6 = system.clockTree["OSCCLKSRCSEL"]; mux6.inputSelect = "INTOSC1"; const pinFunction1 = system.clockTree["AUXCLK"]; pinFunction1.XTAL_Freq = 10; cputimer1.$name = "myCPUTIMER0"; cputimer1.timerPeriod = 10000; cputimer1.enableInterrupt = true; cputimer1.registerInterrupts = true; cputimer1.timerInt.enableInterrupt = true; cputimer1.timerInt.interruptHandler = "TIMER0_ISR"; gpio1.direction = "GPIO_DIR_MODE_OUT"; gpio1.$name = "LED_Blue"; gpio1.gpioPin.$assign = "GPIO31"; sci1.$name = "mySCI0"; sci1.useInterrupts = false; sci1.sci.$assign = "SCIA"; sci1.sci.scirxdPin.$assign = "GPIO43"; sci1.sci.scitxdPin.$assign = "GPIO42"; sci1.rxQual.$name = "myGPIOQUAL0"; sci1.txQual.$name = "myGPIOQUAL1";