Tidying
This commit is contained in:
@@ -13,9 +13,10 @@ class Signature
|
|||||||
throw new \Exception("Cannot generate hex string of incomplete AVR8 target signature.");
|
throw new \Exception("Cannot generate hex string of incomplete AVR8 target signature.");
|
||||||
}
|
}
|
||||||
|
|
||||||
return '0x' . substr('0' . dechex($this->byteZero), -2)
|
return '0x' . strtoupper(
|
||||||
|
substr('0' . dechex($this->byteZero), -2)
|
||||||
. substr('0' . dechex($this->byteOne), -2)
|
. substr('0' . dechex($this->byteOne), -2)
|
||||||
. substr('0' . dechex($this->byteTwo), -2)
|
. substr('0' . dechex($this->byteTwo), -2)
|
||||||
;
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,13 +63,6 @@ class ValidationService
|
|||||||
|
|
||||||
if (empty($tdf->addressSpaces)) {
|
if (empty($tdf->addressSpaces)) {
|
||||||
$failures[] = 'Missing address spaces';
|
$failures[] = 'Missing address spaces';
|
||||||
|
|
||||||
} elseif (count($tdf->addressSpaces) > 256) {
|
|
||||||
/*
|
|
||||||
* We store address space IDs in an std::uint8_t - which should be more than enough (I don't think we'll
|
|
||||||
* ever support a target with more than 256 address spaces).
|
|
||||||
*/
|
|
||||||
$failures[] = 'Too many address spaces (' . count($tdf->addressSpaces) . ')';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$processedAddressSpaceKeys = [];
|
$processedAddressSpaceKeys = [];
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ use Targets\TargetDescriptionFiles\TargetFamily;
|
|||||||
require_once __DIR__ . '/FromXmlService.php';
|
require_once __DIR__ . '/FromXmlService.php';
|
||||||
require_once __DIR__ . '/ToXmlService.php';
|
require_once __DIR__ . '/ToXmlService.php';
|
||||||
require_once __DIR__ . '/../../TargetDescriptionFile.php';
|
require_once __DIR__ . '/../../TargetDescriptionFile.php';
|
||||||
|
require_once __DIR__ . '/../../AVR8/Avr8TargetDescriptionFile.php';
|
||||||
|
|
||||||
require_once __DIR__ . '/Exceptions/XmlParsingException.php';
|
require_once __DIR__ . '/Exceptions/XmlParsingException.php';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user