Support for a number of AVRDU/EA/EB targets

This commit is contained in:
Nav
2025-01-06 22:32:26 +00:00
parent baee5005db
commit b999c5382c
30 changed files with 42114 additions and 2 deletions

View File

@@ -9,5 +9,7 @@ enum AvrFamily: string
case DB = 'DB';
case DA = 'DA';
case DD = 'DD';
case DU = 'DU';
case EA = 'EA';
case EB = 'EB';
}

View File

@@ -328,9 +328,17 @@ class AtdfService
return AvrFamily::DD;
}
if ($atdfFamilyName === 'avr du' || substr($atdfTargetName, 5, 2) === 'du') {
return AvrFamily::DU;
}
if ($atdfFamilyName === 'avr ea' || substr($atdfTargetName, 5, 2) === 'ea') {
return AvrFamily::EA;
}
if ($atdfFamilyName === 'avr eb' || substr($atdfTargetName, 5, 2) === 'eb') {
return AvrFamily::EB;
}
}
return null;
@@ -1059,7 +1067,7 @@ class AtdfService
return new Variant(
str_replace(
'-',
['-', '/'],
'_',
strtolower($attributes['ordercode'] ?? $attributes['name'] ?? '')
),