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