Added config value to TargetPhysicalInterface enum

This commit is contained in:
Nav
2024-07-12 15:09:05 +01:00
parent 9026601a2d
commit 0619263295

View File

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