Tidying
This commit is contained in:
@@ -22,46 +22,31 @@ class ValidationService extends \Targets\TargetDescriptionFiles\Services\Validat
|
|||||||
{
|
{
|
||||||
$failures = parent::validateTdf($tdf);
|
$failures = parent::validateTdf($tdf);
|
||||||
|
|
||||||
if ($tdf->getMemorySegment('prog', 'internal_program_memory') === null) {
|
if ($tdf->getProgramMemorySegment() === null) {
|
||||||
$failures[] = 'Missing "internal_program_memory" memory segment';
|
$failures[] = 'Missing "internal_program_memory" memory segment';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($tdf->getMemorySegment('data', 'internal_ram') === null) {
|
if ($tdf->getRamSegment() === null) {
|
||||||
$failures[] = 'Missing "internal_ram" memory segment';
|
$failures[] = 'Missing "internal_ram" memory segment';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if ($tdf->getEepromSegment() === null) {
|
||||||
$tdf->getMemorySegment('data', 'internal_eeprom') === null
|
|
||||||
&& $tdf->getMemorySegment('eeprom', 'internal_eeprom') === null
|
|
||||||
) {
|
|
||||||
$failures[] = 'Missing "internal_eeprom" memory segment';
|
$failures[] = 'Missing "internal_eeprom" memory segment';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if ($tdf->getGpRegistersMemorySegment() === null) {
|
||||||
$tdf->getMemorySegment('data', 'gp_registers') === null
|
|
||||||
&& $tdf->getMemorySegment('register_file', 'gp_registers') === null
|
|
||||||
) {
|
|
||||||
$failures[] = 'Missing "gp_registers" memory segment';
|
$failures[] = 'Missing "gp_registers" memory segment';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if ($tdf->getIoMemorySegment() === null) {
|
||||||
$tdf->getMemorySegment('data', 'io') === null
|
|
||||||
&& $tdf->getMemorySegment('data', 'mapped_io') === null
|
|
||||||
) {
|
|
||||||
$failures[] = 'Missing IO memory segment';
|
$failures[] = 'Missing IO memory segment';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if ($tdf->getSignaturesMemorySegment() === null) {
|
||||||
$tdf->getMemorySegment('data', 'signatures') === null
|
|
||||||
&& $tdf->getMemorySegment('signatures', 'signatures') === null
|
|
||||||
) {
|
|
||||||
$failures[] = 'Missing "signatures" memory segment';
|
$failures[] = 'Missing "signatures" memory segment';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if ($tdf->getFusesMemorySegment() === null) {
|
||||||
$tdf->getMemorySegment('data', 'fuses') === null
|
|
||||||
&& $tdf->getMemorySegment('fuses', 'fuses') === null
|
|
||||||
) {
|
|
||||||
$failures[] = 'Missing "fuses" memory segment';
|
$failures[] = 'Missing "fuses" memory segment';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user