/**
 * 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 --board "/ti/boards/CC26X2R1_LAUNCHXL" --product "simplelink_cc13x2_26x2_sdk@4.30.00.54"
 * @versions {"data":"2020090214","timestamp":"2020090214","tool":"1.6.0+1543","templates":"2020090214"}
 */

/**
 * Import the modules used in this configuration.
 */
const Display        = scripting.addModule("/ti/display/Display", {}, false);
const Display1       = Display.addInstance();
const GPIO           = scripting.addModule("/ti/drivers/GPIO");
const GPIO1          = GPIO.addInstance();
const GPIO2          = GPIO.addInstance();
const RTOS           = scripting.addModule("/ti/drivers/RTOS");
const LoggerITM      = scripting.addModule("/ti/loggers/drivers/LoggerITM", {}, false);
const LoggerITM1     = LoggerITM.addInstance();
const ExGr_LoggerBuf = scripting.addModule("/ti/loggers/utils/ExGr_LoggerBuf");
const Bench          = scripting.addModule("/ti/utils/runtime/Bench", {}, false);
const Bench1         = Bench.addInstance();
const ExGr_SYSBIOS   = scripting.addModule("/ti/utils/runtime/ExGr_SYSBIOS");
const ExGr_tiutils   = scripting.addModule("/ti/utils/runtime/ExGr_tiutils");
const LogMain        = scripting.addModule("/ti/utils/runtime/LogMain");
const LogSite        = scripting.addModule("/ti/utils/runtime/LogSite", {}, false);
const LogSite1       = LogSite.addInstance();
const LoggerText     = scripting.addModule("/ti/utils/runtime/LoggerText", {}, false);
const LoggerText1    = LoggerText.addInstance();

/**
 * Write custom configuration values to the imported modules.
 */
Display1.$name                    = "CONFIG_Display_0";
Display1.$hardware                = system.deviceData.board.components.XDS110UART;
Display1.uart.$name               = "CONFIG_UART_1";
Display1.uart.txPinInstance.$name = "CONFIG_PIN_4";
Display1.uart.rxPinInstance.$name = "CONFIG_PIN_5";

GPIO1.$hardware         = system.deviceData.board.components.LED_RED;
GPIO1.$name             = "CONFIG_GPIO_LED_0";
GPIO1.pinInstance.$name = "CONFIG_PIN_0";

GPIO2.$hardware         = system.deviceData.board.components.LED_GREEN;
GPIO2.$name             = "CONFIG_GPIO_LED_1";
GPIO2.pinInstance.$name = "CONFIG_PIN_1";

const CCFG              = scripting.addModule("/ti/devices/CCFG", {}, false);
CCFG.ccfgTemplate.$name = "ti_devices_CCFGTemplate0";

LoggerITM1.$name = "CONFIG_ti_loggers_drivers_LoggerITM_0";

const ITM                = scripting.addModule("/ti/drivers/ITM", {}, false);
ITM.swoPinInstance.$name = "CONFIG_PIN_2";

ExGr_LoggerBuf.ExecGraphLogger.$name = "Config_ExecGraphLogger_0";

Bench1.$name = "CONFIG_Bench_0";

const ExGr_XDCtools                          = scripting.addModule("/ti/utils/runtime/ExGr_XDCtools", {}, false);
ExGr_XDCtools.ExecGraphLogger_xdctools.$name = "Config_ExecGraphLogger_1";

ExGr_tiutils.ExecGraphLogger_utils.$name   = "Config_ExecGraphLogger_2";
ExGr_tiutils.ExecGraphLogger_drivers.$name = "Config_ExecGraphLogger_3";

LogSite1.$name = "ti_utils_runtime_LogSite_0";

const LoggerBuf        = scripting.addModule("/ti/loggers/utils/LoggerBuf", {}, false);
const LoggerBuf1       = LoggerBuf.addInstance({}, false);
LoggerBuf1.$name       = "CONFIG_ti_loggers_utils_LoggerBuf_0";
LogSite1.logger        = LoggerBuf1;
LogMain.LogSite.logger = LoggerBuf1;

LoggerText1.$name = "CONFIG_ti_utils_runtime_LoggerText_0";

/**
 * 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.
 */
Display1.uart.uart.$suggestSolution       = "UART1";
Display1.uart.uart.txPin.$suggestSolution = "boosterpack.4";
Display1.uart.uart.rxPin.$suggestSolution = "boosterpack.3";
GPIO1.gpioPin.$suggestSolution            = "boosterpack.39";
GPIO2.gpioPin.$suggestSolution            = "boosterpack.40";
ITM.swoPin.$suggestSolution               = "boosterpack.29";
