Added additional target variant package types in PHP TDF parser
This commit is contained in:
@@ -6,8 +6,10 @@ require_once __DIR__ . "/Pin.php";
|
|||||||
class Pinout
|
class Pinout
|
||||||
{
|
{
|
||||||
const TYPE_SOIC = 'SOIC';
|
const TYPE_SOIC = 'SOIC';
|
||||||
|
const TYPE_SSOP = 'SSOP';
|
||||||
const TYPE_DIP = 'DIP';
|
const TYPE_DIP = 'DIP';
|
||||||
const TYPE_QFN = 'QFN';
|
const TYPE_QFN = 'QFN';
|
||||||
|
const TYPE_QFP = 'QFP';
|
||||||
const TYPE_BGA = 'BGA';
|
const TYPE_BGA = 'BGA';
|
||||||
|
|
||||||
public ?string $name = null;
|
public ?string $name = null;
|
||||||
|
|||||||
@@ -338,9 +338,15 @@ class TargetDescriptionFile
|
|||||||
} else if (stristr($pinout->name, Pinout::TYPE_SOIC) !== false) {
|
} else if (stristr($pinout->name, Pinout::TYPE_SOIC) !== false) {
|
||||||
$pinout->type = Pinout::TYPE_SOIC;
|
$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) {
|
} else if (stristr($pinout->name, Pinout::TYPE_QFN) !== false) {
|
||||||
$pinout->type = Pinout::TYPE_QFN;
|
$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) {
|
} else if (stristr($pinout->name, Pinout::TYPE_BGA) !== false) {
|
||||||
$pinout->type = Pinout::TYPE_BGA;
|
$pinout->type = Pinout::TYPE_BGA;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user