Added additional target variant package types in PHP TDF parser

This commit is contained in:
Nav
2021-07-09 23:39:43 +01:00
parent 2e4810389f
commit 1c1e07eaf8
2 changed files with 8 additions and 0 deletions

View File

@@ -6,8 +6,10 @@ require_once __DIR__ . "/Pin.php";
class Pinout
{
const TYPE_SOIC = 'SOIC';
const TYPE_SSOP = 'SSOP';
const TYPE_DIP = 'DIP';
const TYPE_QFN = 'QFN';
const TYPE_QFP = 'QFP';
const TYPE_BGA = 'BGA';
public ?string $name = null;

View File

@@ -338,9 +338,15 @@ class TargetDescriptionFile
} else if (stristr($pinout->name, Pinout::TYPE_SOIC) !== false) {
$pinout->type = Pinout::TYPE_SOIC;
} else if (stristr($pinout->name, Pinout::TYPE_SSOP) !== false) {
$pinout->type = Pinout::TYPE_SSOP;
} else if (stristr($pinout->name, Pinout::TYPE_QFN) !== false) {
$pinout->type = Pinout::TYPE_QFN;
} else if (stristr($pinout->name, Pinout::TYPE_QFP) !== false) {
$pinout->type = Pinout::TYPE_QFP;
} else if (stristr($pinout->name, Pinout::TYPE_BGA) !== false) {
$pinout->type = Pinout::TYPE_BGA;
}