Added SDI physical interface
This commit is contained in:
@@ -8,6 +8,7 @@ enum TargetPhysicalInterface: string
|
|||||||
case PDI = 'pdi';
|
case PDI = 'pdi';
|
||||||
case UPDI = 'updi';
|
case UPDI = 'updi';
|
||||||
case DEBUG_WIRE = 'debug_wire';
|
case DEBUG_WIRE = 'debug_wire';
|
||||||
|
case SDI = 'sdi';
|
||||||
|
|
||||||
public function supportsDebugging(): bool
|
public function supportsDebugging(): bool
|
||||||
{
|
{
|
||||||
@@ -22,6 +23,7 @@ enum TargetPhysicalInterface: string
|
|||||||
self::PDI => 'PDI',
|
self::PDI => 'PDI',
|
||||||
self::UPDI => 'UPDI',
|
self::UPDI => 'UPDI',
|
||||||
self::DEBUG_WIRE => 'debugWIRE',
|
self::DEBUG_WIRE => 'debugWIRE',
|
||||||
|
self::SDI => 'SDI',
|
||||||
default => 'Other'
|
default => 'Other'
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -33,6 +35,7 @@ enum TargetPhysicalInterface: string
|
|||||||
self::PDI => 'pdi',
|
self::PDI => 'pdi',
|
||||||
self::UPDI => 'updi',
|
self::UPDI => 'updi',
|
||||||
self::DEBUG_WIRE => 'debug-wire',
|
self::DEBUG_WIRE => 'debug-wire',
|
||||||
|
self::SDI => 'sdi',
|
||||||
default => null
|
default => null
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -171,6 +171,7 @@ TargetConfig::TargetConfig(const YAML::Node& targetNode) {
|
|||||||
{"pdi", TargetPhysicalInterface::PDI},
|
{"pdi", TargetPhysicalInterface::PDI},
|
||||||
{"jtag", TargetPhysicalInterface::JTAG},
|
{"jtag", TargetPhysicalInterface::JTAG},
|
||||||
{"updi", TargetPhysicalInterface::UPDI},
|
{"updi", TargetPhysicalInterface::UPDI},
|
||||||
|
{"sdi", TargetPhysicalInterface::SDI},
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!targetNode["physicalInterface"]) {
|
if (!targetNode["physicalInterface"]) {
|
||||||
|
|||||||
@@ -162,6 +162,7 @@ namespace Targets::TargetDescription
|
|||||||
{"jtag", TargetPhysicalInterface::JTAG},
|
{"jtag", TargetPhysicalInterface::JTAG},
|
||||||
{"pdi", TargetPhysicalInterface::PDI},
|
{"pdi", TargetPhysicalInterface::PDI},
|
||||||
{"isp", TargetPhysicalInterface::ISP},
|
{"isp", TargetPhysicalInterface::ISP},
|
||||||
|
{"sdi", TargetPhysicalInterface::SDI},
|
||||||
};
|
};
|
||||||
|
|
||||||
auto output = std::set<TargetPhysicalInterface>{};
|
auto output = std::set<TargetPhysicalInterface>{};
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ namespace Targets
|
|||||||
{TargetPhysicalInterface::PDI, "PDI"},
|
{TargetPhysicalInterface::PDI, "PDI"},
|
||||||
{TargetPhysicalInterface::JTAG, "JTAG"},
|
{TargetPhysicalInterface::JTAG, "JTAG"},
|
||||||
{TargetPhysicalInterface::UPDI, "UPDI"},
|
{TargetPhysicalInterface::UPDI, "UPDI"},
|
||||||
|
{TargetPhysicalInterface::SDI, "SDI"},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ namespace Targets
|
|||||||
DEBUG_WIRE,
|
DEBUG_WIRE,
|
||||||
PDI,
|
PDI,
|
||||||
UPDI,
|
UPDI,
|
||||||
|
SDI,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user