%%{
    isDevelopmentMode = args.common.isDevelopmentMode();
    deviceName = args.utils.getProjectSpecDevice(args.device);
    if(args.device == "am62x")
        deviceName = "AM62x"
    sysCfgVersion = args.utils.getSysCfgVersionProjectSpec();
%%}
{
% if(isDevelopmentMode) {
    "name": "MOTOR_CONTROL_SDK",
    "displayName": "MOTOR CONTROL SDK",
% } else {
    "name": "MOTOR_CONTROL_SDK_`deviceName`",
    "displayName": "MOTOR CONTROL SDK for `deviceName`",
% }
    "version": "09.00.00",
    "documentationPath": "../docs",
    "includePaths": [
        "../source",
    ],
    "components": [
% if((args.device == "am64x") || (args.device == "am243x")) {
        "/motor_control/motor_control",
% }
% if(args.device == "am263x") {
        "/motor_control/motor_control",
% }
% if((args.device == "am273x") || (args.device == "awr294x")) {
        "/kernel/dpl",
        "/drivers/drivers",
        "/board/board",
        "/networking/networking",
% }
% if(args.device == "am62x") {
        "/kernel/dpl",
        "/drivers/drivers",
        "/board/board",
% }
    ],
    "devices": [
% if((args.device == "am64x") || (isDevelopmentMode)) {
        "AM64x_beta",
% }
% if((args.device == "am243x") || (isDevelopmentMode)) {
        "AM243x_ALV_beta",
        "AM243x_ALX_beta",
% }
% if((args.device == "am273x") || (isDevelopmentMode)) {
        "AM273x",
% }
% if((args.device == "awr294x") || (isDevelopmentMode)) {
        "AWR294X",
% }
% if((args.device == "am263x") || (isDevelopmentMode)) {
        "AM263x_beta",
% }
% if((args.device == "am62x") || (isDevelopmentMode)) {
        "AM62x",
% }
    ],
    "contexts": {
% if((args.device == "am64x") || (isDevelopmentMode)) {
        "AM64x_beta": [
            "r5fss0-0",
            "r5fss0-1",
            "r5fss1-0",
            "r5fss1-1",
            "m4fss0-0",
            "a53ss0-0",
        ],
% }
% if((args.device == "am243x") || (isDevelopmentMode)) {
        "AM243x_ALV_beta": [
            "r5fss0-0",
            "r5fss0-1",
            "r5fss1-0",
            "r5fss1-1",
            "m4fss0-0",
        ],
        "AM243x_ALX_beta": [
            "r5fss0-0",
            "r5fss0-1",
            "r5fss1-0",
            "r5fss1-1",
            "m4fss0-0",
        ],
% }
% if((args.device == "am273x") || (isDevelopmentMode)) {
        "AM273x": [
            "r5fss0-0",
            "r5fss0-1",
            "c66ss0",
            "hsm0-0",
        ],
% }
% if((args.device == "awr294x") || (isDevelopmentMode)) {
        "AWR294X": [
            "r5fss0-0",
            "r5fss0-1",
            "c66ss0",
            "hsm0-0",
        ],
% }
% if((args.device == "am263x") || (isDevelopmentMode)) {
        "AM263x_beta": [
            "r5fss0-0",
            "r5fss0-1",
            "r5fss1-0",
            "r5fss1-1",
            "hsm0-0",
        ],
% }
% if((args.device == "am62x") || (isDevelopmentMode)) {
        "AM62x": [
            "m4fss0-0",
        ],
% }
    },
    "pinmuxUIOptions": {
        "group": "merged",
        "hidePeripheralTab": false,
        "showPinTable": true,
        "showSignals": true,
        "showUsed": true
    },
    "minToolVersion" : "`sysCfgVersion`"
}
