Added config value to TargetPhysicalInterface enum
This commit is contained in:
@@ -24,4 +24,15 @@ enum TargetPhysicalInterface: string
|
||||
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