Added SDI physical interface

This commit is contained in:
Nav
2024-10-03 22:55:40 +01:00
parent 98ba68d1a6
commit ca498c64c2
5 changed files with 7 additions and 0 deletions

View File

@@ -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
}; };
} }

View File

@@ -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"]) {

View File

@@ -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>{};

View File

@@ -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"},
}; };
} }
} }

View File

@@ -13,6 +13,7 @@ namespace Targets
DEBUG_WIRE, DEBUG_WIRE,
PDI, PDI,
UPDI, UPDI,
SDI,
}; };
/** /**