Refactored physical interfaces in TDFs and TDF scripts

This commit is contained in:
Nav
2024-07-06 01:33:19 +01:00
parent 8aad5b9095
commit 4bb309a179
269 changed files with 632 additions and 630 deletions

View File

@@ -0,0 +1,27 @@
<?php
namespace Targets;
enum TargetPhysicalInterface: string
{
case ISP = 'isp';
case JTAG = 'jtag';
case PDI = 'pdi';
case UPDI = 'updi';
case DEBUG_WIRE = 'debug_wire';
public function supportsDebugging(): bool
{
return $this !== self::ISP;
}
public function marketingName(): string
{
return match($this) {
self::ISP => 'ISP',
self::JTAG => 'JTAG',
self::PDI => 'PDI',
self::UPDI => 'UPDI',
self::DEBUG_WIRE => 'debugWIRE',
};
}
}