Added config value to TargetPhysicalInterface enum
This commit is contained in:
@@ -16,7 +16,7 @@ enum TargetPhysicalInterface: string
|
|||||||
|
|
||||||
public function marketingName(): string
|
public function marketingName(): string
|
||||||
{
|
{
|
||||||
return match($this) {
|
return match ($this) {
|
||||||
self::ISP => 'ISP',
|
self::ISP => 'ISP',
|
||||||
self::JTAG => 'JTAG',
|
self::JTAG => 'JTAG',
|
||||||
self::PDI => 'PDI',
|
self::PDI => 'PDI',
|
||||||
@@ -24,4 +24,15 @@ enum TargetPhysicalInterface: string
|
|||||||
self::DEBUG_WIRE => 'debugWIRE',
|
self::DEBUG_WIRE => 'debugWIRE',
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function configValue(): ?string
|
||||||
|
{
|
||||||
|
return match ($this) {
|
||||||
|
self::JTAG => 'jtag',
|
||||||
|
self::PDI => 'pdi',
|
||||||
|
self::UPDI => 'updi',
|
||||||
|
self::DEBUG_WIRE => 'debug-wire',
|
||||||
|
default => null
|
||||||
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user